Set Decimal to 0.0 if cast of decimal field fails

This commit is contained in:
jmartin 2014-11-03 11:43:25 +01:00
parent daed8b301a
commit 978586f60b
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class BaseExternalMapping(ModelSQL, ModelView):
try:
result = Decimal(result)
except:
result = None
result = Decimal('0.0')
elif mapping_line.external_type == 'bool':
if result:
result = True