This commit is contained in:
Simon Conseil
2013-06-25 23:48:22 +02:00
parent 259f99d2bb
commit 3fd3b710f5
2 changed files with 3 additions and 2 deletions

View File

@@ -59,7 +59,8 @@ class PathsDb(object):
subdir = [os.path.normpath(os.path.join(path, sub))
for sub in self.db[path].get('subdir', [])]
if subdir:
return subdir + reduce(lambda x, y: x+y, map(self.get_subdirs, subdir))
return subdir + reduce(lambda x, y: x+y,
map(self.get_subdirs, subdir))
else:
return []

View File

@@ -53,7 +53,7 @@ def generate_image(source, outname, size, format, options=None,
try:
logger.debug('Processor: %s', method)
processor_cls = getattr(pilkit.processors, method)
except AttributeError as e:
except AttributeError:
logger.error('Wrong processor name: %s', method)
sys.exit()