summaryrefslogtreecommitdiff
path: root/libmat2
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2')
-rw-r--r--libmat2/archive.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmat2/archive.py b/libmat2/archive.py
index 80e0bf2..b4700c3 100644
--- a/libmat2/archive.py
+++ b/libmat2/archive.py
@@ -138,7 +138,13 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
138 abort = True 138 abort = True
139 continue 139 continue
140 if tmp_parser: 140 if tmp_parser:
141 tmp_parser.remove_all() 141 if tmp_parser.remove_all() is False:
142 logging.warning("In file %s, something went wrong \
143 with the cleaning of %s \
144 (format: %s)",
145 self.filename, item.filename, mtype)
146 abort = True
147 continue
142 os.rename(tmp_parser.output_filename, full_path) 148 os.rename(tmp_parser.output_filename, full_path)
143 149
144 zinfo = zipfile.ZipInfo(item.filename) # type: ignore 150 zinfo = zipfile.ZipInfo(item.filename) # type: ignore