[Git][reproducible-builds/diffoscope][master] Also catch IndexError (in addition to ValueError) when parsing .pyc files. (Closes: #1012258)

Chris Lamb (@lamby) gitlab at salsa.debian.org
Thu Jun 2 12:03:46 UTC 2022



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
35a9bfbe by Chris Lamb at 2022-06-02T13:03:25+01:00
Also catch IndexError (in addition to ValueError) when parsing .pyc files. (Closes: #1012258)

- - - - -


1 changed file:

- diffoscope/comparators/python.py


Changes:

=====================================
diffoscope/comparators/python.py
=====================================
@@ -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 []
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/35a9bfbee0c1a5f00fb0a66b689514d21bacd6a5

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/35a9bfbee0c1a5f00fb0a66b689514d21bacd6a5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220602/43a1ba06/attachment.htm>


More information about the rb-commits mailing list