changeset 40:77c3439e76bb default tip

py3
author Jeff Hammel <k0scist@gmail.com>
date Wed, 25 Nov 2020 11:00:17 -0800
parents 529598840f4b
children
files montage/formatters.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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