From 90c31a3672f111ad1fbcdd2f9b1f07ef9ff3d51e Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 4 May 2017 09:45:20 -0700 Subject: [PATCH] Added check for read error in find_diskimage --- atrcopy/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atrcopy/__init__.py b/atrcopy/__init__.py index e141190..abceca0 100644 --- a/atrcopy/__init__.py +++ b/atrcopy/__init__.py @@ -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 = ""