summaryrefslogtreecommitdiff
path: root/MAT
diff options
context:
space:
mode:
authorjvoisin2014-01-20 10:45:07 +0000
committerjvoisin2014-01-20 10:45:07 +0000
commit658cadb7624ffbe495ef76ebd1cc674fd36bfbcb (patch)
tree665db7516754977005de7665c467d21087816790 /MAT
parent18a9e4f32998d59f9dbd02e8645f622a58d3ffa5 (diff)
Fix https://labs.riseup.net/code/issues/6609
Fix "MAT's GUI traceback when cleaning files"
Diffstat (limited to 'MAT')
-rw-r--r--MAT/archive.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/MAT/archive.py b/MAT/archive.py
index 4e24316..3c6a139 100644
--- a/MAT/archive.py
+++ b/MAT/archive.py
@@ -76,8 +76,7 @@ class ZipStripper(GenericArchiveStripper):
76 of all non-supported/archives files contained in the 76 of all non-supported/archives files contained in the
77 archive. 77 archive.
78 ''' 78 '''
79 if list_unsupported: 79 ret_list = []
80 ret_list = []
81 zipin = zipfile.ZipFile(self.filename, 'r') 80 zipin = zipfile.ZipFile(self.filename, 'r')
82 if zipin.comment != '' and not list_unsupported: 81 if zipin.comment != '' and not list_unsupported:
83 logging.debug('%s has a comment' % self.filename) 82 logging.debug('%s has a comment' % self.filename)
@@ -253,8 +252,7 @@ class TarStripper(GenericArchiveStripper):
253 of all non-supported/archives files contained in the 252 of all non-supported/archives files contained in the
254 archive. 253 archive.
255 ''' 254 '''
256 if list_unsupported: 255 ret_list = []
257 ret_list = []
258 tarin = tarfile.open(self.filename, 'r' + self.compression) 256 tarin = tarfile.open(self.filename, 'r' + self.compression)
259 for item in tarin.getmembers(): 257 for item in tarin.getmembers():
260 if not self.is_file_clean(item) and not list_unsupported: 258 if not self.is_file_clean(item) and not list_unsupported: