diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-23 17:36:18 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-01-23 17:36:18 -0800 |
commit | 31d855041901c86df143b90b7f964c387297f1ca (patch) | |
tree | f0fb1d457acb32087190f89f68d5f385e9cb03a8 /cloudinit/url_helper.py | |
parent | e6da32a91c59f33fd72bebc43f8e6beae73fbf39 (diff) | |
download | vyos-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.py | 2 |
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", |