Commit fb7f9c47 by pranto157

check path first

parent 3577306a
......@@ -74,7 +74,8 @@ class GZIPMixin(object):
return
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
original_file = self.open(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