From 21bb879e00eea74a5df9e703749b8cfa20ec1732 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 13:16:51 +0100 Subject: video --- cli/app/utils/cortex_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/app/utils/cortex_utils.py') diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py index 947c7e1..8f00dfa 100644 --- a/cli/app/utils/cortex_utils.py +++ b/cli/app/utils/cortex_utils.py @@ -82,7 +82,7 @@ def upload_fp_to_cortex(opt_folder_id, fp): } url = os.path.join(api_url('folder'), str(opt_folder_id), 'upload/') r = requests.post(url, files=files, data=data) - return None if resp.status_code != 200 else resp.json() + return None if r.status_code != 200 else r.json() def upload_bytes_to_cortex(opt_folder_id, fn, fp, mimetype): """Upload a BytesIO object""" -- cgit v1.2.3-70-g09d2