diff options
-rw-r--r-- | cloudinit/UserDataHandler.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py index cbea7469..ab7d0bc8 100644 --- a/cloudinit/UserDataHandler.py +++ b/cloudinit/UserDataHandler.py @@ -46,9 +46,7 @@ def do_include(str,parts): for line in str.splitlines(): if line == "#include": continue if line.startswith("#"): continue - try: - content = urllib.urlopen(line).read() - except Exception e: + content = urllib.urlopen(line).read() process_includes(email.message_from_string(decomp_str(content)),parts) def process_includes(msg,parts): |