Verify that workflow_options is not None before indexing it
This commit is contained in:
parent
cdaa71280c
commit
7aa219091e
|
@ -833,7 +833,8 @@ class ExportToModel(WorkflowStatusItem):
|
|||
'the [variable] syntax, available variables depends on the form.')
|
||||
filename = 'export_to_model-%s-%s-%s.upload' % ids
|
||||
widget_name = '%smodel_file' % prefix
|
||||
if formdef and formdef.workflow_options.get(widget_name) is not None:
|
||||
if formdef and formdef.workflow_options and \
|
||||
formdef.workflow_options.get(widget_name) is not None:
|
||||
value = formdef.workflow_options.get(widget_name)
|
||||
else:
|
||||
value = self.model_file
|
||||
|
|
Loading…
Reference in New Issue