Skip to content

Commit

Permalink
Fixed issue with Handler.before always being called
Browse files Browse the repository at this point in the history
  • Loading branch information
nullism committed May 19, 2016
1 parent 5297caa commit 2db63ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pycnic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.8"
__version__ = "0.0.9"
6 changes: 3 additions & 3 deletions pycnic/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ def delegate(self):
# Set defaults for handler
handler.request = self.request
handler.response = self.response

if hasattr(handler, 'before'):
handler.before()

m = re.match('^' + pattern + '$', path)
if m:
if hasattr(handler, 'before'):
handler.before()

args = m.groups()
funcname = method.lower()
try:
Expand Down

0 comments on commit 2db63ed

Please sign in to comment.