From ce9a2f32ead355fdf166efeb3f8fc264fd428feb Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Mon, 25 Jan 2016 22:30:08 -0500 Subject: Do not error if we can't hit localhost --- jobmanager.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jobmanager.py b/jobmanager.py index 74327a7..63ae16b 100755 --- a/jobmanager.py +++ b/jobmanager.py @@ -28,8 +28,16 @@ class JobManager: def mark_jobs_ran(self): logging.debug("Marking jobs as run successfully.") - requests.post("http://localhost:5001/", data="True") + try: + requests.post("http://localhost:5001/", data="True") + except: + pass + #Nothing we can do except hope our peers save us def mark_jobs_ran_with_error(self): logging.warning("Marking jobs as run unsuccessfully.") - requests.post("http://localhost:5001/", data="False") \ No newline at end of file + try: + requests.post("http://localhost:5001/", data="False") + except: + pass + #Nothing we can do except hope our peers save us -- cgit v1.2.3