diff --git a/common.py b/common.py index d585deb..69fc1d6 100644 --- a/common.py +++ b/common.py @@ -178,7 +178,7 @@ def api_get_job(action, api, token, none_exit=True): else: print("Unable to get job. Retrying in 60 seconds...") sleep(60) - ret = get_job(action, host, port, none_exit) + ret = api_get_job(action, api, token, none_exit) except IOError: print("Unable to get job. Retrying in 60 seconds...") sleep(60)