don't abort on errors in data source expression
This commit is contained in:
parent
1c89899b90
commit
9c9be4927f
|
@ -71,5 +71,8 @@ class DataSourceSelectionWidget(CompositeWidget):
|
|||
def get_items(data_source):
|
||||
if data_source.get('type') == 'formula':
|
||||
vars = get_publisher().substitutions.get_context_variables()
|
||||
return eval(data_source.get('value'), vars, data_source_functions)
|
||||
try:
|
||||
return eval(data_source.get('value'), vars, data_source_functions)
|
||||
except:
|
||||
return []
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue