From 798d62e9d3f0725f07cded6b6e41a436a5b54f54 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 7 Jun 2013 15:56:53 +0200 Subject: [PATCH] Use Python 3.x compatible except: construct Per (propsed) Hacking H203 check, use the non-deprecated except x as y: construct which works with any Python version >= 2.6 Change-Id: Ibe58125719ba7fccf68974555a4b93f9dcdad6ae --- heatclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heatclient/shell.py b/heatclient/shell.py index 9c4ca644..2651f49a 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -344,7 +344,7 @@ def main(): try: HeatShell().main(sys.argv[1:]) - except Exception, e: + except Exception as e: print >> sys.stderr, e sys.exit(1)