From be11324740ad4624c45a6e909643ab84aecdbf16 Mon Sep 17 00:00:00 2001 From: Scott Moser <smoser@ubuntu.com> Date: Wed, 26 Jan 2011 09:03:46 -0500 Subject: change 'except' syntax to python 3 style. Everywhere that there occurred: except Exception, e: changed to except Exception as e: --- cloud-init-cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloud-init-cfg.py') 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) -- cgit v1.2.3