Skip to content

Commit

Permalink
[Fixed #76] Make except_response decorator look more like what it wraps.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkybob committed Jun 9, 2018
1 parent 5ae3b33 commit f76c595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nap/http/decorators.py
@@ -1,3 +1,5 @@
from functools import update_wrapper

from . import BaseHttpResponse


Expand All @@ -7,6 +9,7 @@ class except_response:
'''
def __init__(self, func):
self.func = func
update_wrapper(self, func)

def __call__(self, request, *args, **kwargs):
try:
Expand Down

0 comments on commit f76c595

Please sign in to comment.