Skip to content

Commit 929a1e7

Browse files
committed
also handle 404 status for download
1 parent e1716a6 commit 929a1e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ayon_api/server_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def _upload_file(
18381838
**kwargs
18391839
)
18401840
# Auto-fix missing 'api/'
1841-
if response.status_code == 405 and not api_prepended:
1841+
if response.status_code in (404, 405) and not api_prepended:
18421842
api_prepended = True
18431843
if (
18441844
not endpoint.startswith(self._base_url)

0 commit comments

Comments
 (0)