Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
Bug 1298731 - Autophone - retry urlretrieve upon SSLError errors, r=g…
Browse files Browse the repository at this point in the history
…brown.
  • Loading branch information
bclary committed Sep 1, 2016
1 parent 932ed95 commit b578c86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils.py
Expand Up @@ -18,6 +18,8 @@
import uuid
import math

from ssl import SSLError

import taskcluster

import build_dates
Expand Down Expand Up @@ -414,7 +416,7 @@ def urlretrieve(url, dest, max_attempts=3):
try:
urllib.urlretrieve(url, dest)
break
except urllib.ContentTooShortError, e:
except (urllib.ContentTooShortError, SSLError), e:
logger.warning("utils.urlretrieve: %s: Attempt %s: %s" % (
url, attempt, e))
if attempt == max_attempts - 1:
Expand Down

0 comments on commit b578c86

Please sign in to comment.