diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 19:45:48 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 19:45:48 -0700 |
commit | 84abafd991389c533b40f00ab2fec76f744a2275 (patch) | |
tree | d2dc819d5fda1bad6864a16080b045cc3529599e /cloudinit/url_helper.py | |
parent | fceec461dec835ecb23e75aafb84ee45710b6526 (diff) | |
download | vyos-cloud-init-84abafd991389c533b40f00ab2fec76f744a2275.tar.gz vyos-cloud-init-84abafd991389c533b40f00ab2fec76f744a2275.zip |
Allow url fetching to catch any other type of exceptions that occur
Diffstat (limited to 'cloudinit/url_helper.py')
-rw-r--r-- | cloudinit/url_helper.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py index 18686686..95de9c7a 100644 --- a/cloudinit/url_helper.py +++ b/cloudinit/url_helper.py @@ -88,6 +88,8 @@ def readurl(url, data=None, timeout=None, excepts.append(e.reason) else: excepts.append(e) + except Exception as e: + excepts.append(e) if i + 1 < attempts: LOG.debug("Please wait %s seconds while we wait to try again", sec_between) |