Skip to content

Commit 33a767c

Browse files
committed
fix: lint exception raising
1 parent fe46408 commit 33a767c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typesense/stemming_dictionaries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def _parse_response(
152152
for line in response.split("\n"):
153153
try:
154154
decoded = json.loads(line)
155-
except json.JSONDecodeError:
156-
raise ValueError(f"Failed to parse JSON from response: {line}")
155+
except json.JSONDecodeError as err:
156+
raise ValueError(f"Failed to parse JSON from response: {line}") from err
157157
object_list.append(decoded)
158158
return object_list
159159

0 commit comments

Comments
 (0)