Skip to content

Commit

Permalink
Fix lint reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Oct 20, 2018
1 parent 6ce2cc8 commit eb2b016
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions imgp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ adapt = False # use adaptive resolution
convert = False # convert PNG to JPG
dot = False # process hidden files starting with .
eraseexif = False # erase EXIF metadata
progressive = False # save as a progressive image
progressive = False # save as a progressive image
force = False # forced to exact specified resolution
includeimgp = False # process _IMGP files
keep = False # ignore images with matching hres or vres
Expand Down Expand Up @@ -72,7 +72,7 @@ def getres(res):

try:
return(int(hxv[0]), int(hxv[1]))
except:
except Exception:
return (0, 0)


Expand Down Expand Up @@ -150,15 +150,15 @@ def rotate_image(src):
if debug:
lock_print('resize_image: progressive')
_progressive = True
except:
except Exception:
pass

try:
if eraseexif:
exifdata = b''
else:
exifdata = img.info['exif']
except:
except Exception:
exifdata = b''
except OSError as e:
if not str(e).startswith('cannot identify image file'):
Expand Down Expand Up @@ -246,15 +246,15 @@ def resize_image(src):
if debug:
lock_print('resize_image: progressive')
_progressive = True
except:
except Exception:
pass

try:
if eraseexif:
exifdata = b''
else:
exifdata = img.info['exif']
except:
except Exception:
exifdata = b''
except OSError as e:
if not str(e).startswith('cannot identify image file'):
Expand Down

0 comments on commit eb2b016

Please sign in to comment.