From 2f6fb29989ffe66de49d57287de0171ec9bc65a8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 9 May 2019 14:37:57 +0200 Subject: [PATCH] xls_parser: no use to treat CryptoError differently --- oletools/ppt_record_parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/oletools/ppt_record_parser.py b/oletools/ppt_record_parser.py index 1e65d60..56ea255 100644 --- a/oletools/ppt_record_parser.py +++ b/oletools/ppt_record_parser.py @@ -63,7 +63,6 @@ except ImportError: sys.path.insert(0, PARENT_DIR) del PARENT_DIR from oletools import record_base -from oletools.common.errors import CryptoErrorBase # types of relevant records (there are much more than listed here) @@ -174,7 +173,7 @@ def is_ppt(filename): for record in stream.iter_records(): if record.type == 0x0ff5: # UserEditAtom have_user_edit = True - elif record.type == 0x1772: # PersisDirectoryAtom + elif record.type == 0x1772: # PersistDirectoryAtom have_persist_dir = True elif record.type == 0x03e8: # DocumentContainer have_document_container = True @@ -185,8 +184,6 @@ def is_ppt(filename): return True else: # ignore other streams/storages since they are optional continue - except CryptoErrorBase: - raise except Exception as exc: logging.debug('Ignoring exception in is_ppt, assume is not ppt', exc_info=True) -- libgit2 0.21.4