1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-02-03 17:50:12 +01:00

Coorecting dats_base

This commit is contained in:
prieto 2016-06-10 17:07:37 +02:00
commit 4acb7832ff

View file

@ -64,6 +64,11 @@ class Varchar(DataField):
def _check_data_value(self, value):
error = None
try:
value = str(value)
except(ValueError, TypeError):
error = TypeError("The value '%s' can't be a str" % value)
return value, error
return value, error
##@brief Data field designed to handle date & time