2008-01-08 Benny Malengier <benny.malengier@gramps-project.org>
* src/ArgHandler.py: bug with tarfile exceptions svn: r9753
This commit is contained in:
@@ -524,10 +524,10 @@ class ArgHandler:
|
||||
for tarinfo in archive:
|
||||
archive.extract(tarinfo,tmpdir_path)
|
||||
archive.close()
|
||||
except ReadError, msg:
|
||||
except tarfile.ReadError, msg:
|
||||
print "Error reading archive:", msg
|
||||
sys.exit(1)
|
||||
except CompressError, msg:
|
||||
except tarfile.CompressError, msg:
|
||||
print "Error uncompressing archive:", msg
|
||||
sys.exit(1)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user