Catch all exceptions when evaluating the pyson value
issue7009 review35811002
This commit is contained in:
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):
|
||||
|
||||
Reference in new issue
Block a user