Skip to content

Commit

Permalink
Fix except blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemacfarlane committed Oct 11, 2014
1 parent 73a88b8 commit 374f71a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/z3c/rml/pagetemplate.py
Expand Up @@ -18,7 +18,7 @@

try:
import zope.pagetemplate.pagetemplatefile
except ImportError, err:
except ImportError as err:
raise
# zope.pagetemplate package has not been installed
import types
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/rml/rml2pdfscript.py
Expand Up @@ -96,7 +96,7 @@ def goSubProcess(xmlInputName, outputFileName, testing=False):
p = subprocess.Popen(program, executable=py, env=env,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except Exception, e:
except Exception as e:
raise Exception("Subprocess error: %s" % e)

# Do we need to improve the implementation and kill the subprocess which will
Expand Down

0 comments on commit 374f71a

Please sign in to comment.