def _scan(self, context): mop = MachOParser(context.data) try: mop.parse() except MachOParserError, e: self._error("ERROR: %s" % e) return
def run(self, obj, config): data = obj.filedata.read() mop = MachOParser(data) try: mop.parse() except MachOParserError, e: self._error("ERROR: %s" % e) return