From 3efea51828fed509b31b0ab25ddfe77f258b202e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 7 Jun 2013 15:55:28 +0200 Subject: [PATCH] Use Python 3.x compatible except construct Per (proposed) Hacking check, use except x as y: instead of x,y:, which works with any Python version >= 2.6 Change-Id: I6e52cedec5c694bccae10541b1964a8547d4ffd1 --- ceilometerclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometerclient/shell.py b/ceilometerclient/shell.py index a9c7c58f..c5e4937a 100644 --- a/ceilometerclient/shell.py +++ b/ceilometerclient/shell.py @@ -335,7 +335,7 @@ def main(): try: CeilometerShell().main(sys.argv[1:]) - except Exception, e: + except Exception as e: print >> sys.stderr, e sys.exit(1)