workflow: correctly import empty model file (#31823)
This commit is contained in:
parent
a86a837bb4
commit
7ad20714aa
|
@ -490,7 +490,7 @@ class ExportToModel(WorkflowStatusItem):
|
|||
base_filename = elem.find('base_filename').text
|
||||
content_type = elem.find('content_type').text
|
||||
if elem.find('b64_content') is not None:
|
||||
content = base64.decodestring(elem.find('b64_content').text)
|
||||
content = base64.decodestring(elem.find('b64_content').text or '')
|
||||
if elem.find('content') is not None:
|
||||
content = elem.find('content').text
|
||||
|
||||
|
|
Loading…
Reference in New Issue