def parse(self, field, data): try: return FieldParser.parse(self, field, data) except ValueError as e: report(e) # raise e return None
def parseC(self, field, data): result = FieldParser.parseC(self, field, data) if not result: return None return result
def parseF(self, field, value): try: x = FieldParser.parseF(self, field, value) except ValueError as err: x = value.decode('utf8') finally: return x
def parseN(self, field, value): try: x = FieldParser.parseN(self, field, value) except ValueError as err: x = value.decode('utf8') global _ERRS _ERRS.append([field.name, x]) finally: return x
def parse(self, field, data): try: return FieldParser.parse(self, field, data) except ValueError: return InvalidValue(data)
def parse(self, field, data): try: return FieldParser.parse(self, field, data) except ValueError as e: print(e) return None