From 934cbbc131cd06f7a8960f226eb9ebbd5d6d5f44 Mon Sep 17 00:00:00 2001 From: vsoch Date: Fri, 4 Mar 2022 00:16:25 -0700 Subject: [PATCH] wrong return code Signed-off-by: vsoch --- scripts/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.py b/scripts/deploy.py index 92e239e..d83a180 100644 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -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())