Skip to content

Commit

Permalink
Remove empty lines from input
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Oct 25, 2023
1 parent 90670b1 commit c70fff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exasol/toolbox/tools/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class Issue:


def _issues(input) -> Generator[Issue, None, None]:
for line in input:
lines = (l for l in input if l.strip() != '')
for line in lines:
obj = json.loads(line)
yield Issue(**obj)

Expand Down

0 comments on commit c70fff9

Please sign in to comment.