Skip to content

Commit be1f5d2

Browse files
committed
Suppress KeyErrors from opening Zip archives
1 parent 88ebe03 commit be1f5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ def __init__(
10731073
fileobj.seek(0)
10741074
setattr(self, lower_ext, fileobj)
10751075
self._files_to_close.append(fileobj)
1076-
except (OSError, AttributeError):
1076+
except (OSError, AttributeError, KeyError):
10771077
pass
10781078
# Close and delete the temporary zipfile
10791079
try:

0 commit comments

Comments
 (0)