Update of /cvsroot/pythoncard/PythonCard/samples/pictureViewer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19204/pictureViewer
Modified Files:
pictureViewer.py
Log Message:
Removed all of the plain except: clauses I could
Index: pictureViewer.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/pictureViewer/pictureViewer.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** pictureViewer.py 15 Aug 2004 17:34:57 -0000 1.24
--- pictureViewer.py 13 Dec 2005 11:13:24 -0000 1.25
***************
*** 146,150 ****
scale = float(result.text) / 100.0
self.displayFileScaled(scale, scale)
! except:
pass
--- 146,150 ----
scale = float(result.text) / 100.0
self.displayFileScaled(scale, scale)
! except ValueError:
pass
***************
*** 163,167 ****
tags=EXIF.process_file(f)
f.close()
! try:
# the repr() is something like
# (0x0112) Short=8 @ 54
--- 163,167 ----
tags=EXIF.process_file(f)
f.close()
! if tags.has_key('Image Orientation'):
# the repr() is something like
# (0x0112) Short=8 @ 54
***************
*** 171,175 ****
#print 'Image Orientation: %d' % orientation
#print 'Thumbnail Orientation: %s' % tags['Thumbnail Orientation']
! except:
orientation = 1
--- 171,175 ----
#print 'Image Orientation: %d' % orientation
#print 'Thumbnail Orientation: %s' % tags['Thumbnail Orientation']
! else:
orientation = 1
***************
*** 217,221 ****
bmp.SaveFile(path, fileType)
return True
! except:
return False
else:
--- 217,221 ----
bmp.SaveFile(path, fileType)
return True
! except IOError:
return False
else:
|