pep8
This commit is contained in:
@@ -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 []
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user