diff options
author | Dirk Mueller <dirk@dmllr.de> | 2013-04-22 04:16:31 +0200 |
---|---|---|
committer | Dirk Mueller <dirk@dmllr.de> | 2013-04-22 04:22:24 +0200 |
commit | f3826902a018d835d1ba19123d68aed7b26d2b5f (patch) | |
tree | b70a1e019b714ae07c6fd0ef85ba3e7ac718009a /nova/version.py | |
parent | 18d9a8b4b4d794547f7cc47b5f58484c22066655 (diff) | |
download | nova-f3826902a018d835d1ba19123d68aed7b26d2b5f.tar.gz |
Improve Python 3.x compatibility
A bit of mechanical translation to clean
out the deprecated except x,y: construct
Change-Id: I80883b6b0c014bdf4799e8b7b2c4a4a07d951a0b
Diffstat (limited to 'nova/version.py')
-rw-r--r-- | nova/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/version.py b/nova/version.py index 6f2cbbb28f..2606fda37c 100644 --- a/nova/version.py +++ b/nova/version.py @@ -60,7 +60,7 @@ def _load_config(): NOVA_PACKAGE = cfg.get("Nova", "package") if cfg.has_option("Nova", "package"): NOVA_PACKAGE = cfg.get("Nova", "package") - except Exception, ex: + except Exception as ex: LOG = logging.getLogger(__name__) LOG.error("Failed to load %(cfgfile)s: %(ex)s" % locals()) |