Пример #1
0
 def parse(self, field, data):
     try:
         return FieldParser.parse(self, field, data)
     except ValueError as e:
         report(e)
         # raise e
         return None
Пример #2
0
    def parseC(self, field, data):
        result = FieldParser.parseC(self, field, data)

        if not result:
            return None

        return result
Пример #3
0
    def parseC(self, field, data):
        result = FieldParser.parseC(self, field, data)

        if not result:
            return None

        return result
Пример #4
0
 def parseF(self, field, value):
     try:
         x = FieldParser.parseF(self, field, value)
     except ValueError as err:
         x = value.decode('utf8')
     finally:
         return x
Пример #5
0
 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
Пример #6
0
 def parse(self, field, data):
     try:
         return FieldParser.parse(self, field, data)
     except ValueError:
         return InvalidValue(data)
Пример #7
0
 def parse(self, field, data):
     try:
         return FieldParser.parse(self, field, data)
     except ValueError:
         return InvalidValue(data)
Пример #8
0
 def parse(self, field, data):
     try:
         return FieldParser.parse(self, field, data)
     except ValueError as e:
         print(e)
         return None