Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1234)

Unified Diff: infra/libs/buildbot/master.py

Issue 1116583002: Add connection breakage. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Address maruel's comments. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/libs/buildbot/test/master_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/buildbot/master.py
diff --git a/infra/libs/buildbot/master.py b/infra/libs/buildbot/master.py
index fa2ce822b2a86698ff65673d6044b94c9c462ac6..ea5040023f8d793dd19279fd44af4e1e3ada04fc 100644
--- a/infra/libs/buildbot/master.py
+++ b/infra/libs/buildbot/master.py
@@ -141,7 +141,7 @@ def get_accepting_builds(directory, timeout=30):
return res.json().get('accepting_builds')
except simplejson.scanner.JSONDecodeError:
pass
- except requests.exceptions.Timeout:
+ except (requests.exceptions.Timeout, requests.exceptions.ConnectionError):
pass
return None
« no previous file with comments | « no previous file | infra/libs/buildbot/test/master_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698