Skip to content

Commit

Permalink
BUG: added exception in case of missing keys for remote run
Browse files Browse the repository at this point in the history
  • Loading branch information
AvishaiW committed Sep 27, 2018
1 parent fae59f2 commit 8efa003
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion catalyst/utils/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ def get_remote_status(algo_id):


def send_digest_request(json_file, path, method):
key, secret = retrieve_remote_auth()
try:
key, secret = retrieve_remote_auth()
except json.JSONDecodeError as e:
log.error("your key and secret aren't stored properly\n{}".
format(e.msg))
raise
json_file['key'] = key
session = requests.Session()
if method == POST:
Expand Down

0 comments on commit 8efa003

Please sign in to comment.