Skip to content

Commit

Permalink
Continue when an exception has been encountered during package recogn…
Browse files Browse the repository at this point in the history
…ition #3971

Signed-off-by: Jono Yang <jyang@nexb.com>
  • Loading branch information
JonoYang committed Nov 6, 2024
1 parent 38cbabb commit f450020
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/packagedcode/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,11 @@ def _parse(

if TRACE:
raise

except Exception as e:
# We should continue when an Exception has occured when trying to
# recognize a package
if TRACE:
logger_debug(f'_parse: Exception: {str(e)}')

continue

0 comments on commit f450020

Please sign in to comment.