Skip to content

Commit

Permalink
Re-add response argument to Unauthorized exception
Browse files Browse the repository at this point in the history
The argument was removed by #1319
  • Loading branch information
cedk authored and davidism committed May 7, 2019
1 parent 7e9d607 commit d433b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/werkzeug/exceptions.py
Expand Up @@ -268,8 +268,8 @@ class Unauthorized(HTTPException):
" how to supply the credentials required."
)

def __init__(self, description=None, www_authenticate=None):
HTTPException.__init__(self, description)
def __init__(self, description=None, response=None, www_authenticate=None):
HTTPException.__init__(self, description, response)
if not isinstance(www_authenticate, (tuple, list)):
www_authenticate = (www_authenticate,)
self.www_authenticate = www_authenticate
Expand Down

0 comments on commit d433b19

Please sign in to comment.