diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-03-31 09:40:40 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-03-31 09:40:40 -0500 |
commit | 43cce86f464eeaed73357524d0e5cec0ce5468a0 (patch) | |
tree | 570c23db9f6708348df50a4f2173a3f757816429 /src/lib/Bcfg2/Server/Lint | |
parent | c674e2fd3d068b19d291a92231244f91a0120fe5 (diff) | |
download | bcfg2-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-x | src/lib/Bcfg2/Server/Lint/Genshi.py | 3 |
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) |