Skip to content

Commit eb2b016

Browse files
committed
Fix lint reports
1 parent 6ce2cc8 commit eb2b016

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

imgp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ adapt = False # use adaptive resolution
3434
convert = False # convert PNG to JPG
3535
dot = False # process hidden files starting with .
3636
eraseexif = False # erase EXIF metadata
37-
progressive = False # save as a progressive image
37+
progressive = False # save as a progressive image
3838
force = False # forced to exact specified resolution
3939
includeimgp = False # process _IMGP files
4040
keep = 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'):

0 commit comments

Comments
 (0)