Skip to content

Commit 784c2ec

Browse files
committed
Trap one more exception
1 parent b1c27ee commit 784c2ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

uncompyle6/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,13 @@ def main(
415415
# sys.stderr.write(f"Ran {deparsed_object.f.name}\n")
416416
pass
417417
tot_files += 1
418-
except (ValueError, SyntaxError, ParserError, SourceWalkerError) as e:
418+
except (
419+
ValueError,
420+
SyntaxError,
421+
ParserError,
422+
SourceWalkerError,
423+
ImportError,
424+
) as e:
419425
sys.stdout.write("\n")
420426
sys.stderr.write(f"\n# file {infile}\n# {e}\n")
421427
failed_files += 1

0 commit comments

Comments
 (0)