Browse Source

Код выхода в случае ошибки EX_DATAERR

master
Alexander Demidov 11 years ago
parent
commit
26dc279218
  1. 1
      resize.py

1
resize.py

@ -52,3 +52,4 @@ try:
im.save(outfile, "JPEG", quality=100)
except IOError:
print("cannot create thumbnail for '%s'" % infile)
sys.exit(os.EX_DATAERR)
Loading…
Cancel
Save