output.get_obj: catch ObjectCorruptedError

This commit is contained in:
Saugat Pachhai (सौगात)
2022-08-30 21:31:33 +03:00
committed by Ruslan Kuprieiev
parent daee52e176
commit d3569035c8
+1 -1
View File
@@ -737,7 +737,7 @@ class Output:
elif self.hash_info:
try:
obj = oload(self.odb, self.hash_info)
except FileNotFoundError:
except (FileNotFoundError, ObjectFormatError):
return None
else:
return None