diff options
| -rw-r--r-- | libmat2/office.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmat2/office.py b/libmat2/office.py index e48773a..e79fe58 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -98,11 +98,10 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser): | |||
| 98 | full_path = os.path.join(temp_folder, item.filename) | 98 | full_path = os.path.join(temp_folder, item.filename) |
| 99 | 99 | ||
| 100 | if self._specific_cleanup(full_path) is False: | 100 | if self._specific_cleanup(full_path) is False: |
| 101 | shutil.rmtree(temp_folder) | ||
| 102 | os.remove(self.output_filename) | ||
| 103 | logging.warning("Something went wrong during deep cleaning of %s", | 101 | logging.warning("Something went wrong during deep cleaning of %s", |
| 104 | item.filename) | 102 | item.filename) |
| 105 | return False | 103 | abort = True |
| 104 | continue | ||
| 106 | 105 | ||
| 107 | if item.filename in self.files_to_keep: | 106 | if item.filename in self.files_to_keep: |
| 108 | # those files aren't supported, but we want to add them anyway | 107 | # those files aren't supported, but we want to add them anyway |
