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

Unified Diff: rietveld.py

Issue 1417963005: Retry socket.timeout as well as SSL timeouts (ssl.SSLError is a subclass of socket.error). (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 2 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 | tests/rietveld_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index c24ba4d3c2872508ce3d8453ea3e7fe8906bd7bd..57d7fd624bf476c691d77f79d876e1e267727fb8 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -442,7 +442,7 @@ class Rietveld(object):
):
# Usually internal GAE flakiness.
raise
- except ssl.SSLError, e:
+ except socket.error, e:
if retry >= (self._maxtries - 1):
raise
if not 'timed out' in str(e):
« no previous file with comments | « no previous file | tests/rietveld_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698