Commit afca0488 authored by Vibhu Agrawal's avatar Vibhu Agrawal

Handling ENOSPC for .zip/.aia or similar files

diffoscope/comparators/zip.py: added another except block to handle
OSError.
Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874582
parent b2b61327
Pipeline #41593 failed with stage
in 15 minutes and 18 seconds
......@@ -152,6 +152,14 @@ class ZipContainer(Archive):
raise ContainerExtractionError(member_name, exc)
raise
except OSError as ose:
if (ose.errno == 28):
sys.tracebacklimit = 0
raise ose
else:
raise
def get_member(self, member_name):
zipinfo = self.archive.getinfo(member_name)
if zipinfo.filename[-1] == '/':
......
  • I reverted this on master as I don't think it is ready to merge. Please use a merge request instead of committing directy to this branch - we can comment/review on the MR.

  • mentioned in commit c1f202c4

    Toggle commit list
  • Created an MR. Thanks for helping out.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment