Commit a2138f7c by willmcgugan

Changed text in exception

parent 9ce9fc1f
...@@ -3,7 +3,7 @@ A filesystem abstraction. ...@@ -3,7 +3,7 @@ A filesystem abstraction.
""" """
__version__ = "0.1.0" __version__ = "0.1.1dev"
__author__ = "Will McGugan (will@willmcgugan.com)" __author__ = "Will McGugan (will@willmcgugan.com)"
......
...@@ -75,7 +75,7 @@ class ZipFS(FS): ...@@ -75,7 +75,7 @@ class ZipFS(FS):
try: try:
self.zf = ZipFile(zip_file, mode, compression_type, allowZip64) self.zf = ZipFile(zip_file, mode, compression_type, allowZip64)
except IOError: except IOError:
raise ResourceNotFoundError("NO_FILE", "Zip file does not exist: %(path)s") raise ResourceNotFoundError("NO_FILE", str(zip_file), msg="Zip file does not exist: %(path)s")
self.zip_path = str(zip_file) self.zip_path = str(zip_file)
self.temp_fs = None self.temp_fs = None
...@@ -129,7 +129,7 @@ class ZipFS(FS): ...@@ -129,7 +129,7 @@ class ZipFS(FS):
if 'r' in mode: if 'r' in mode:
if self.zip_mode not in 'ra': if self.zip_mode not in 'ra':
raise OperationFailedError("OPEN_FAILED", path=path, msg="Zip file must be opened for reading ('r') or appending ('a')") raise OperationFailedError("OPEN_FAILED", path, msg="Zip file must be opened for reading ('r') or appending ('a')")
try: try:
contents = self.zf.read(path) contents = self.zf.read(path)
except KeyError: except KeyError:
......
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