Commit 2f6fb29989ffe66de49d57287de0171ec9bc65a8

Authored by Christian Herdtweck
1 parent 4b10b95a

xls_parser: no use to treat CryptoError differently

Showing 1 changed file with 1 additions and 4 deletions
oletools/ppt_record_parser.py
... ... @@ -63,7 +63,6 @@ except ImportError:
63 63 sys.path.insert(0, PARENT_DIR)
64 64 del PARENT_DIR
65 65 from oletools import record_base
66   -from oletools.common.errors import CryptoErrorBase
67 66  
68 67  
69 68 # types of relevant records (there are much more than listed here)
... ... @@ -174,7 +173,7 @@ def is_ppt(filename):
174 173 for record in stream.iter_records():
175 174 if record.type == 0x0ff5: # UserEditAtom
176 175 have_user_edit = True
177   - elif record.type == 0x1772: # PersisDirectoryAtom
  176 + elif record.type == 0x1772: # PersistDirectoryAtom
178 177 have_persist_dir = True
179 178 elif record.type == 0x03e8: # DocumentContainer
180 179 have_document_container = True
... ... @@ -185,8 +184,6 @@ def is_ppt(filename):
185 184 return True
186 185 else: # ignore other streams/storages since they are optional
187 186 continue
188   - except CryptoErrorBase:
189   - raise
190 187 except Exception as exc:
191 188 logging.debug('Ignoring exception in is_ppt, assume is not ppt',
192 189 exc_info=True)
... ...