diff options
| author | Dirk Mueller <dirk@dmllr.de> | 2013-09-04 14:40:46 +0200 |
|---|---|---|
| committer | Dirk Mueller <dirk@dmllr.de> | 2013-09-04 14:41:29 +0200 |
| commit | f7bc95a871abd6af6bfec062feefe851c1ad2a4e (patch) | |
| tree | 75b157e9e20a64d33bdd68203ba86ac0d733c41a /designateclient/cli | |
| parent | bd8023493a153780260c8f40f9dcc133c829cd37 (diff) | |
| download | python-designateclient-f7bc95a871abd6af6bfec062feefe851c1ad2a4e.tar.gz | |
Use Python 3.x compatible except construct.
Python 3.x deprecated the form "except x,y:". Switch usage to
"except x as y:", which works with any Python version >= 2.6
Change-Id: Id276fdaee9e8753568227e638408e5bccff28e67
Diffstat (limited to 'designateclient/cli')
| -rw-r--r-- | designateclient/cli/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/designateclient/cli/base.py b/designateclient/cli/base.py index c9e46dd..824865d 100644 --- a/designateclient/cli/base.py +++ b/designateclient/cli/base.py @@ -47,7 +47,7 @@ class Command(CliffCommand): try: return super(Command, self).run(parsed_args) - except exceptions.RemoteError, e: + except exceptions.RemoteError as e: columns = ['Code', 'Type'] values = [e.code, e.type] |
