Skip to content

Commit

Permalink
Merge pull request #1448 from Frky/patch-5
Browse files Browse the repository at this point in the history
Fix bug when scan result file is empty
  • Loading branch information
p-l- committed Oct 21, 2022
2 parents af12f72 + e6eaaf9 commit dbc6b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ivre/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,9 @@ def store_scan(self, fname, **kargs):
)
elif fchar == b"[":
store_scan_function = self.store_scan_json_dismap
elif fchar == b"":
# empty input file
return lambda a, b: True
else:
raise ValueError( # pylint: disable=raise-missing-from
f"Unknown file type {fname}"
Expand Down

0 comments on commit dbc6b51

Please sign in to comment.