From 84abafd991389c533b40f00ab2fec76f744a2275 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 19:45:48 -0700 Subject: Allow url fetching to catch any other type of exceptions that occur --- cloudinit/url_helper.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit') 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) -- cgit v1.2.3