Skip to content
Snippets Groups Projects
Commit 35a9bfbe authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Also catch IndexError (in addition to ValueError) when parsing .pyc files. (Closes: #1012258)

parent 3adcd3bd
No related branches found
No related tags found
No related merge requests found
Pipeline #385144 passed
......@@ -53,7 +53,7 @@ class PycFile(File):
source="Python bytecode",
)
]
except ValueError as exc:
except (ValueError, IndexError) as exc:
self.add_comment("Could not decompile bytecode: {}".format(exc))
return []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment