Added check for read error in find_diskimage

This commit is contained in:
Rob McMullen 2017-05-04 09:45:20 -07:00
parent 052e084d1d
commit 90c31a3672

View File

@ -72,6 +72,9 @@ def find_diskimage(filename):
except UnsupportedDiskImage, e:
print "%s: %s" % (filename, e)
return None
except IOError, e:
print "%s: %s" % (filename, e)
return None
else:
parser.image.filename = filename
parser.image.ext = ""