File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ adapt = False # use adaptive resolution
3434convert = False # convert PNG to JPG
3535dot = False # process hidden files starting with .
3636eraseexif = False # erase EXIF metadata
37- progressive = False # save as a progressive image
37+ progressive = False # save as a progressive image
3838force = False # forced to exact specified resolution
3939includeimgp = False # process _IMGP files
4040keep = False # ignore images with matching hres or vres
@@ -72,7 +72,7 @@ def getres(res):
7272
7373 try :
7474 return (int (hxv [0 ]), int (hxv [1 ]))
75- except :
75+ except Exception :
7676 return (0 , 0 )
7777
7878
@@ -150,15 +150,15 @@ def rotate_image(src):
150150 if debug :
151151 lock_print ('resize_image: progressive' )
152152 _progressive = True
153- except :
153+ except Exception :
154154 pass
155155
156156 try :
157157 if eraseexif :
158158 exifdata = b''
159159 else :
160160 exifdata = img .info ['exif' ]
161- except :
161+ except Exception :
162162 exifdata = b''
163163 except OSError as e :
164164 if not str (e ).startswith ('cannot identify image file' ):
@@ -246,15 +246,15 @@ def resize_image(src):
246246 if debug :
247247 lock_print ('resize_image: progressive' )
248248 _progressive = True
249- except :
249+ except Exception :
250250 pass
251251
252252 try :
253253 if eraseexif :
254254 exifdata = b''
255255 else :
256256 exifdata = img .info ['exif' ]
257- except :
257+ except Exception :
258258 exifdata = b''
259259 except OSError as e :
260260 if not str (e ).startswith ('cannot identify image file' ):
You can’t perform that action at this time.
0 commit comments