diff --git a/sigal/gallery.py b/sigal/gallery.py index be8e761..47fe03b 100644 --- a/sigal/gallery.py +++ b/sigal/gallery.py @@ -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 [] diff --git a/sigal/image.py b/sigal/image.py index c50d518..dfbf385 100644 --- a/sigal/image.py +++ b/sigal/image.py @@ -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()