2008-01-08 Benny Malengier <benny.malengier@gramps-project.org>

* src/ArgHandler.py: bug with tarfile exceptions



svn: r9753
This commit is contained in:
Benny Malengier 2008-01-08 19:13:54 +00:00
parent 56d33a2c4f
commit a9619bab5f
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2008-01-08 Benny Malengier <benny.malengier@gramps-project.org>
* src/ArgHandler.py: bug with tarfile exceptions
2008-01-08 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/Editors/_EditFamily.py: import fixes
* src/plugins/FindDupes.py: variable typo fix

View File

@ -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: