summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Lint
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-03-31 09:40:40 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-03-31 09:40:40 -0500
commit43cce86f464eeaed73357524d0e5cec0ce5468a0 (patch)
tree570c23db9f6708348df50a4f2173a3f757816429 /src/lib/Bcfg2/Server/Lint
parentc674e2fd3d068b19d291a92231244f91a0120fe5 (diff)
downloadbcfg2-43cce86f464eeaed73357524d0e5cec0ce5468a0.tar.gz
bcfg2-43cce86f464eeaed73357524d0e5cec0ce5468a0.tar.bz2
bcfg2-43cce86f464eeaed73357524d0e5cec0ce5468a0.zip
PY3K: Fix exception handling for #1080
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint')
-rwxr-xr-xsrc/lib/Bcfg2/Server/Lint/Genshi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Genshi.py b/src/lib/Bcfg2/Server/Lint/Genshi.py
index 1965f0330..739e829d0 100755
--- a/src/lib/Bcfg2/Server/Lint/Genshi.py
+++ b/src/lib/Bcfg2/Server/Lint/Genshi.py
@@ -22,6 +22,7 @@ class Genshi(Bcfg2.Server.Lint.ServerPlugin):
try:
loader.load(sdata.name,
cls=genshi.template.NewTextTemplate)
- except genshi.template.TemplateSyntaxError, err:
+ except genshi.template.TemplateSyntaxError:
+ err = sys.exc_info()[1]
self.LintError("genshi-syntax-error",
"Genshi syntax error: %s" % err)