# HG changeset patch # User Jeff Hammel # Date 1606330817 28800 # Node ID 77c3439e76bb746d1b6dd534f438eee71c664acc # Parent 529598840f4b84437bbc7684fd569f2aa8e2c79a py3 diff -r 529598840f4b -r 77c3439e76bb montage/formatters.py --- a/montage/formatters.py Wed Nov 25 10:58:02 2020 -0800 +++ b/montage/formatters.py Wed Nov 25 11:00:17 2020 -0800 @@ -85,7 +85,7 @@ else: # create a new thumbnail create_thumbnail = True - + if create_thumbnail: # do thumbnail creation flag = False @@ -95,7 +95,7 @@ with open(thumbnail_file, 'w') as fd: flag = True thumbnail_image.save(fd) - except Exception, e: # failure to create thumbnail + except Exception as e: # failure to create thumbnail pass # fix the path to point to the thumbnail