We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf9b73 commit ae3017dCopy full SHA for ae3017d
fsspec/implementations/zip.py
@@ -113,10 +113,10 @@ def _open(
113
path = self._strip_protocol(path)
114
if "r" in mode and self.mode in set("wa"):
115
if self.exists(path):
116
- raise IOError("ZipFS can only be open for reading or writing, not both")
+ raise OSError("ZipFS can only be open for reading or writing, not both")
117
raise FileNotFoundError(path)
118
if "r" in self.mode and "w" in mode:
119
120
out = self.zip.open(path, mode.strip("b"))
121
if "r" in mode:
122
info = self.info(path)
0 commit comments