From a9619bab5fbb602470864b2ce89a3b3edc484e4e Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 8 Jan 2008 19:13:54 +0000 Subject: [PATCH] 2008-01-08 Benny Malengier * src/ArgHandler.py: bug with tarfile exceptions svn: r9753 --- ChangeLog | 3 +++ src/ArgHandler.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e490467bd..3bc784474 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-01-08 Benny Malengier + * src/ArgHandler.py: bug with tarfile exceptions + 2008-01-08 Raphael Ackermann * src/Editors/_EditFamily.py: import fixes * src/plugins/FindDupes.py: variable typo fix diff --git a/src/ArgHandler.py b/src/ArgHandler.py index fcdd0a104..262f814c6 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -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: