summaryrefslogtreecommitdiff
path: root/cloud-init-cfg.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-26 09:03:46 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-26 09:03:46 -0500
commitbe11324740ad4624c45a6e909643ab84aecdbf16 (patch)
treea7a2a7e8a4b4a05ea5a071610b7c52bf4e6ef810 /cloud-init-cfg.py
parentf69109bb2be91a7210a88bfb1b4467f80dc6ba64 (diff)
downloadvyos-cloud-init-be11324740ad4624c45a6e909643ab84aecdbf16.tar.gz
vyos-cloud-init-be11324740ad4624c45a6e909643ab84aecdbf16.zip
change 'except' syntax to python 3 style.
Everywhere that there occurred: except Exception, e: changed to except Exception as e:
Diffstat (limited to 'cloud-init-cfg.py')
-rwxr-xr-xcloud-init-cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud-init-cfg.py b/cloud-init-cfg.py
index 442fc4d8..75ede23f 100755
--- a/cloud-init-cfg.py
+++ b/cloud-init-cfg.py
@@ -65,7 +65,7 @@ def main():
try:
(outfmt, errfmt) = CC.get_output_cfg(cc.cfg,modename)
CC.redirect_output(outfmt, errfmt)
- except Exception, e:
+ except Exception as e:
err("Failed to get and set output config: %s\n" % e)
cloudinit.logging_set_from_cfg(cc.cfg)