Commit ef29f10e by Timothée Peignier

Merge pull request #322 from newscred/fix-path-error

check path first
parents 6a186b9b fb7f9c47
...@@ -74,7 +74,8 @@ class GZIPMixin(object): ...@@ -74,7 +74,8 @@ class GZIPMixin(object):
return return
for path in paths: for path in paths:
if path and not matches_patterns(path, self.gzip_patterns): if path:
if not matches_patterns(path, self.gzip_patterns):
continue continue
original_file = self.open(path) original_file = self.open(path)
gzipped_path = "{0}.gz".format(path) gzipped_path = "{0}.gz".format(path)
......
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