We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f791dae commit 3c58ae9Copy full SHA for 3c58ae9
src/shapefile.py
@@ -979,7 +979,7 @@ def __init__(
979
shp: Union[_NoShpSentinel, Optional[BinaryFileT]] = _NoShpSentinel(),
980
shx: Optional[BinaryFileT] = None,
981
dbf: Optional[BinaryFileT] = None,
982
- **kwargs,
+ **kwargs, # pylint: disable=unused-argument
983
):
984
self.shp = None
985
self.shx = None
@@ -1073,7 +1073,7 @@ def __init__(
1073
fileobj.seek(0)
1074
setattr(self, lower_ext, fileobj)
1075
self._files_to_close.append(fileobj)
1076
- except:
+ except (OSError, AttributeError):
1077
pass
1078
# Close and delete the temporary zipfile
1079
try:
0 commit comments