From 8818cd2490b73c4d0f550f863bc25927452568f7 Mon Sep 17 00:00:00 2001 From: Mantas Date: Thu, 1 Mar 2018 00:09:29 +0200 Subject: [PATCH] Fix a bug introduced during py3 refactoring See: https://github.com/okfn/ofs/pull/14#pullrequestreview-100243401 --- ofs/local/zipstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofs/local/zipstore.py b/ofs/local/zipstore.py index 086c15f..a41b803 100644 --- a/ofs/local/zipstore.py +++ b/ofs/local/zipstore.py @@ -49,7 +49,7 @@ def __init__(self, zipfile, mode="r", compression=ZIP_STORED, allowZip64=False, self.hashing_type = hashing_type self.quiet = quiet if mode == "r" and not is_zipfile(zipfile): - raise e + raise BadZipArchive(zipfile + ' is not a valid zipfile.') try: self.z = ZipFile(self.zipfile, self.mode, self.compression, self.allowZip64) #if mode != "r":