From f2d57983b9eb6ec64a310c1a8cb03fdfa25bff48 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 7 Jun 2016 12:30:21 +0200 Subject: [PATCH] found one base except I must have overlooked in error-restructuring --- oletools/olevba.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index d5f14e4..39006b4 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -2517,8 +2517,9 @@ class VBA_Parser(object): if 'Attribut' in data: log.debug('Found VBA compressed code') self.contains_macros = True - except: - log.exception('Error when reading OLE Stream %r' % d.name) + except IOError as exc: + log.info('Error when reading OLE Stream %r' % d.name) + log.debug('Trace:', exc_trace=True) return self.contains_macros def extract_macros(self): -- libgit2 0.21.4