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 aboutcode-org#3971

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang authored and VarshaUN committed Jan 11, 2025
1 parent d57c46f commit cec5451
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 cec5451

Please sign in to comment.