diff --git a/oletools/oleobj.py b/oletools/oleobj.py index f5a4e6f..167dab3 100644 --- a/oletools/oleobj.py +++ b/oletools/oleobj.py @@ -159,6 +159,8 @@ assert struct_uint32.size == 4 # make sure it matches 4 bytes struct_uint16 = struct.Struct(' remaining data # TODO: SLACK DATA - except IOError: # data is not embedded but only linked to + except IOError, struct.error: # no data to read actual_size logging.debug('data is not embedded but only a link') self.actual_size = 0 self.data = None