summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-05-21 12:53:27 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-05-21 12:53:27 -0500
commit5bdcf1ce5fb01aeca47d36f5b96924182c950869 (patch)
tree2b5f1158e16787ffcc9073ad808b9275bd1d171d /src
parentf37fdb3e1374aa6742fb3cb902812132641a745d (diff)
downloadbcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.tar.gz
bcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.tar.bz2
bcfg2-5bdcf1ce5fb01aeca47d36f5b96924182c950869.zip
Fix PY3K syntax error
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py
index 88e5bea6c..e2af287db 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py
@@ -86,7 +86,8 @@ class PackagesSources(Bcfg2.Server.Plugin.SingleXMLFileBacked,
stype.title()).Server.Plugins.Packages,
stype.title())
cls = getattr(module, "%sSource" % stype.title())
- except (ImportError, AttributeError), ex:
+ except (ImportError, AttributeError):
+ ex = sys.exc_info()[1]
self.logger.error("Packages: Unknown source type %s (%s)" % (stype, ex))
return None