From 90792cf8d6b52980fc8a701312bc189d96e0146e Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 7 Dec 2016 09:26:04 +0100 Subject: [PATCH] Specify acceptable errors from ppt parsing --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index dba5a3a..aaaa721 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -2491,7 +2491,7 @@ class VBA_Parser(object): self.ole_file.close() # just in case self.ole_file = None # required to make other methods look at ole_subfiles self.type = TYPE_PPT - except Exception as exc: + except (ppt_parser.PptUnexpectedData, ValueError) as exc: if self.container == 'PptParser': # this is a subfile of a ppt --> to be expected that is no ppt log.debug('PPT subfile is not a PPT file') -- libgit2 0.21.4