diff options
| author | jvoisin | 2020-11-06 15:29:42 +0100 |
|---|---|---|
| committer | jvoisin | 2020-11-06 15:29:42 +0100 |
| commit | b84f73c5c3203d4b5157bb47b8990324e08efef8 (patch) | |
| tree | 2b13919b1edc03879e729a658dfe6f0ec93e10e0 /libmat2/office.py | |
| parent | 96e639dfd3d414c33e966eb188c1b3a1fcdf8679 (diff) | |
Handle multiple namespaces in MSOffice's content types
Diffstat (limited to '')
| -rw-r--r-- | libmat2/office.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py index 1ef29c5..124f864 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -271,7 +271,7 @@ class MSOfficeParser(ZipParser): | |||
| 271 | return False | 271 | return False |
| 272 | 272 | ||
| 273 | if len(namespace.items()) != 1: | 273 | if len(namespace.items()) != 1: |
| 274 | return False # there should be only one namespace for Types | 274 | logging.debug("Got several namespaces for Types: %s", namespace.items()) |
| 275 | 275 | ||
| 276 | removed_fnames = set() | 276 | removed_fnames = set() |
| 277 | with zipfile.ZipFile(self.filename) as zin: | 277 | with zipfile.ZipFile(self.filename) as zin: |
