diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-04-26 15:18:04 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-04-26 15:18:04 -0500 |
commit | bef2d0c73eb0b3fd071f616aa43a945ae2d103b7 (patch) | |
tree | 6b7442075da3d88d649ac9cbe82d6007558e7c8f /src/lib/Server/Plugins/Properties.py | |
parent | 944df5470f9d30717baccf7b716fd4847b31da27 (diff) | |
download | bcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.tar.gz bcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.tar.bz2 bcfg2-bef2d0c73eb0b3fd071f616aa43a945ae2d103b7.zip |
Plugins: Add full PY3K compatibility
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Server/Plugins/Properties.py')
-rw-r--r-- | src/lib/Server/Plugins/Properties.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Properties.py b/src/lib/Server/Plugins/Properties.py index b34bde998..dea797a10 100644 --- a/src/lib/Server/Plugins/Properties.py +++ b/src/lib/Server/Plugins/Properties.py @@ -63,9 +63,10 @@ class Properties(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.Connector.__init__(self) try: self.store = PropDirectoryBacked(self.data, core.fam) - except OSError, e: + except OSError: + e = sys.exc_info()[1] Bcfg2.Server.Plugin.logger.error("Error while creating Properties " - "store: %s %s" % (e.strerror,e.filename)) + "store: %s %s" % (e.strerror, e.filename)) raise Bcfg2.Server.Plugin.PluginInitError def get_additional_data(self, _): |