summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-04-30 11:24:51 -0400
committerRyan Petrello <lists@ryanpetrello.com>2013-04-30 11:24:51 -0400
commit0d641362eb03028e3892904286178bd18844711a (patch)
tree9224ed4af4596c2f40ce13547b48630b5a14bc21 /pecan/core.py
parent79c379daefc64331cacb9a1d8310cc27a74217ae (diff)
downloadpecan-0d641362eb03028e3892904286178bd18844711a.tar.gz
Update exception block syntax.
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 4f5ad8a..e51b3d2 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -248,7 +248,7 @@ class Pecan(object):
try:
node, remainder = lookup_controller(node, path)
return node, remainder
- except NonCanonicalPath, e:
+ except NonCanonicalPath as e:
if self.force_canonical and \
not _cfg(e.controller).get('accept_noncanonical', False):
if req.method == 'POST':
@@ -555,7 +555,7 @@ class Pecan(object):
state.request.pecan = dict(content_type=None)
self.handle_request(state.request, state.response)
- except Exception, e:
+ except Exception as e:
# if this is an HTTP Exception, set it as the response
if isinstance(e, exc.HTTPException):
state.response = e