diff options
author | Vilem Duha <vilem.duha@gmail.com> | 2019-06-24 22:39:20 +0300 |
---|---|---|
committer | Vilem Duha <vilem.duha@gmail.com> | 2019-06-24 22:39:20 +0300 |
commit | 80be53db6fdbeef56982abc1c93478e916a2b9f4 (patch) | |
tree | a428f9e0bcf3ceb329fb6bb8550c01c91305eabf /blenderkit | |
parent | caf4a3058e6546d99e1394672683a0957a123ab4 (diff) |
BlenderKit: wrong status code interpretation caused uploads to fail
Diffstat (limited to 'blenderkit')
-rw-r--r-- | blenderkit/upload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py index ee4df45b..09604290 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -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'} |