@ -56,6 +56,7 @@ try:
enhancer = ImageEnhance.Contrast(im)
im = enhancer.enhance(1.05)
im.save(outfile, "JPEG", quality=100)
except IOError:
except IOError as e:
print("cannot create thumbnail for '%s'" % infile)
print "I/O error({0}): {1}".format(e.errno, e.strerror)
sys.exit(os.EX_DATAERR)