workflow: correctly import empty model file (#31823)

This commit is contained in:
Nicolas Roche 2019-08-29 11:39:09 +02:00 committed by Frédéric Péters
parent a86a837bb4
commit 7ad20714aa
1 changed files with 1 additions and 1 deletions

View File

@ -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