Index: rietveld.py |
diff --git a/rietveld.py b/rietveld.py |
index 39cb19a9d7876c692bfdb41be9a798fc270d7510..9dfe8892b610dfca7c1707c47605e1f841da15e8 100644 |
--- a/rietveld.py |
+++ b/rietveld.py |
@@ -18,6 +18,7 @@ import copy |
import json |
import logging |
import re |
+import ssl |
import time |
import urllib2 |
@@ -405,6 +406,11 @@ class Rietveld(object): |
not 'EOF occurred in violation of protocol' in e.reason): |
# Usually internal GAE flakiness. |
raise |
+ except ssl.SSLError, e: |
M-A Ruel
2014/02/25 22:09:41
except ssl.SSLError as e:
|
+ if retry >= (maxtries - 1): |
+ raise |
+ if not 'timed out' in e.reason: |
+ raise |
# If reaching this line, loop again. Uses a small backoff. |
time.sleep(1+maxtries*2) |
finally: |