buildcomponent: handle builds without resource_key
This commit is contained in:
parent
d29c8d60c7
commit
cd1b003ca6
4 changed files with 20 additions and 6 deletions
|
@ -101,7 +101,7 @@ def build_status_view(build_obj, can_write=False):
|
|||
}
|
||||
}
|
||||
|
||||
if can_write:
|
||||
if can_write and build_obj.resource_key is not None:
|
||||
resp['archive_url'] = user_files.get_file_url(build_obj.resource_key, requires_cors=True)
|
||||
|
||||
return resp
|
||||
|
|
Reference in a new issue