Skip to content

Commit

Permalink
Fix donnemartin#147: Gracefully ignore missing avatar image (donnemar…
Browse files Browse the repository at this point in the history
  • Loading branch information
kBite authored and donnemartin committed Feb 12, 2019
1 parent 6c3b86e commit 77f599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitsome/lib/img2txt/img2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def img2txt(imgname, maxLen=35, clr='', ansi=False,
from PIL import Image
img = load_and_resize_image(imgname, antialias, maxLen)
except IOError:
exit("File not found: " + imgname)
return "File not found: " + imgname
except ImportError:
return 'PIL not found.'
# get pixels
Expand Down

0 comments on commit 77f599e

Please sign in to comment.