Skip to content

Commit 934cbbc

Browse files
committed
wrong return code
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1 parent 774fff4 commit 934cbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def upload_archive(archive, zenodo_json, version):
5050
json={},
5151
headers=headers,
5252
)
53-
if response.status_code != 200:
53+
if response.status_code not in [200, 201]:
5454
sys.exit(
5555
"Trouble requesting new upload: %s, %s"
5656
% (response.status_code, response.json())

0 commit comments

Comments
 (0)