Commit f2d57983b9eb6ec64a310c1a8cb03fdfa25bff48

Authored by Christian Herdtweck
1 parent 32877661

found one base except I must have overlooked in error-restructuring

Showing 1 changed file with 3 additions and 2 deletions
oletools/olevba.py
... ... @@ -2517,8 +2517,9 @@ class VBA_Parser(object):
2517 2517 if 'Attribut' in data:
2518 2518 log.debug('Found VBA compressed code')
2519 2519 self.contains_macros = True
2520   - except:
2521   - log.exception('Error when reading OLE Stream %r' % d.name)
  2520 + except IOError as exc:
  2521 + log.info('Error when reading OLE Stream %r' % d.name)
  2522 + log.debug('Trace:', exc_trace=True)
2522 2523 return self.contains_macros
2523 2524  
2524 2525 def extract_macros(self):
... ...