Skip to content
Snippets Groups Projects
Commit a24407df authored by Vilem Duha's avatar Vilem Duha
Browse files

BlenderKit: comment out unfinished error parsing.

parent b7438b8a
No related branches found
No related tags found
No related merge requests found
...@@ -648,10 +648,10 @@ def start_upload(self, context, asset_type, as_new, metadata_only): ...@@ -648,10 +648,10 @@ def start_upload(self, context, asset_type, as_new, metadata_only):
try: try:
rj = r.json() rj = r.json()
utils.pprint(rj) utils.pprint(rj)
if r.status_code not in (200, 201): # if r.status_code not in (200, 201):
if r.status_code == 401: # if r.status_code == 401:
ui.add_report(r.detail, 5, colors.RED) # ui.add_report(r.detail, 5, colors.RED)
return {'CANCELLED'} # return {'CANCELLED'}
if props.asset_base_id == '': if props.asset_base_id == '':
props.asset_base_id = rj['assetBaseId'] props.asset_base_id = rj['assetBaseId']
props.id = rj['id'] props.id = rj['id']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment