summaryrefslogtreecommitdiff
path: root/cloudinit/url_helper.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-01-23 17:36:18 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-01-23 17:36:18 -0800
commit31d855041901c86df143b90b7f964c387297f1ca (patch)
treef0fb1d457acb32087190f89f68d5f385e9cb03a8 /cloudinit/url_helper.py
parente6da32a91c59f33fd72bebc43f8e6beae73fbf39 (diff)
downloadvyos-cloud-init-31d855041901c86df143b90b7f964c387297f1ca.tar.gz
vyos-cloud-init-31d855041901c86df143b90b7f964c387297f1ca.zip
Use the right exception
Diffstat (limited to 'cloudinit/url_helper.py')
-rw-r--r--cloudinit/url_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py
index 42edf9cf..227983f3 100644
--- a/cloudinit/url_helper.py
+++ b/cloudinit/url_helper.py
@@ -195,7 +195,7 @@ def readurl(url, data=None, timeout=None, retries=0, sec_between=1,
# ssl exceptions are not going to get fixed by waiting a
# few seconds
break
- if exception_cb and not exception_cb(filtered_req_args, e):
+ if exception_cb and not exception_cb(filtered_req_args, excps[-1]):
break
if i + 1 < manual_tries and sec_between > 0:
LOG.debug("Please wait %s seconds while we wait to try again",