Skip to content

Commit

Permalink
wrong return code
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Mar 4, 2022
1 parent 774fff4 commit 934cbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def upload_archive(archive, zenodo_json, version):
json={},
headers=headers,
)
if response.status_code != 200:
if response.status_code not in [200, 201]:
sys.exit(
"Trouble requesting new upload: %s, %s"
% (response.status_code, response.json())
Expand Down

0 comments on commit 934cbbc

Please sign in to comment.