Commit a2138f7c by willmcgugan

Changed text in exception

parent 9ce9fc1f
......@@ -3,7 +3,7 @@ A filesystem abstraction.
"""
__version__ = "0.1.0"
__version__ = "0.1.1dev"
__author__ = "Will McGugan (will@willmcgugan.com)"
......
......@@ -75,7 +75,7 @@ class ZipFS(FS):
try:
self.zf = ZipFile(zip_file, mode, compression_type, allowZip64)
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.temp_fs = None
......@@ -129,7 +129,7 @@ class ZipFS(FS):
if 'r' in mode:
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:
contents = self.zf.read(path)
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