BlenderKit: wrong status code interpretation caused uploads to fail

This commit is contained in:
Vilem Duha 2019-06-24 21:39:20 +02:00
parent caf4a3058e
commit 80be53db6f
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ def start_upload(self, context, asset_type, as_new, metadata_only):
try:
rj = r.json()
utils.pprint(rj)
if r.status_code != 200:
if r.status_code not in (200, 201):
if r.status_code == 401:
ui.add_report(r.detail, 5, colors.RED)
return {'CANCELLED'}