Catch all exceptions when evaluating the pyson value

issue7009
review35811002
This commit is contained in:
Cédric Krier committed 2017-12-13 18:05:48 +01:00
1 parent 47b40c2589
commit e87090ca07
1 file changed
+1 -1
@@ -19,7 +19,7 @@ class PYSON(Char):
return value
try:
return self.encoder.encode(eval(value, CONTEXT))
except (ValueError, TypeError, NameError, SyntaxError):
except Exception:
return None
def set_value(self, record, field):