diff options
author | Tom Ritter <tom@ritter.vg> | 2016-01-25 22:30:08 -0500 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-01-25 22:30:08 -0500 |
commit | ce9a2f32ead355fdf166efeb3f8fc264fd428feb (patch) | |
tree | 6ed407d09a92ff4a4105a5155d6e4ad3d1c401a9 /jobmanager.py | |
parent | 50039fafa2fe320f600a4093b3bb5a8def314a99 (diff) |
Do not error if we can't hit localhost
Diffstat (limited to 'jobmanager.py')
-rwxr-xr-x | jobmanager.py | 12 |
1 files 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 |