Skip to content

Commit f450020

Browse files
committed
Continue when an exception has been encountered during package recognition #3971
Signed-off-by: Jono Yang <[email protected]>
1 parent 38cbabb commit f450020

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/packagedcode/recognize.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,11 @@ def _parse(
113113

114114
if TRACE:
115115
raise
116+
117+
except Exception as e:
118+
# We should continue when an Exception has occured when trying to
119+
# recognize a package
120+
if TRACE:
121+
logger_debug(f'_parse: Exception: {str(e)}')
122+
123+
continue

0 commit comments

Comments
 (0)