Skip to content

Commit 1057ac9

Browse files
committed
Refactor: Remove unnecessary try/except in bulk_export_stream
1 parent ea61c91 commit 1057ac9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

leakix/client.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,5 @@ def bulk_export_stream(self, queries: list[Query] | None = None):
307307
if r.status_code != 200:
308308
return
309309
for line in r.iter_lines():
310-
if not line:
311-
continue
312-
try:
313-
json_event = json.loads(line)
314-
yield l9format.L9Aggregation.from_dict(json_event)
315-
except Exception:
316-
pass
310+
json_event = json.loads(line)
311+
yield l9format.L9Aggregation.from_dict(json_event)

0 commit comments

Comments
 (0)