Skip to content

Commit

Permalink
Merge pull request #1102 from burningmantech/werkzeug
Browse files Browse the repository at this point in the history
Werkzeug 3.0.1
  • Loading branch information
wsanchez authored Feb 2, 2024
2 parents c9aa45a + 0b059f7 commit e64c574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/requirements-direct.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pyOpenSSL==24.0.0
PyYAML==6.0.1
service-identity==24.1.0
Twisted==23.10.0
Werkzeug==2.2.3
Werkzeug==3.0.1
zope.interface==6.1
3 changes: 2 additions & 1 deletion src/ims/application/_klein.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def requestRedirectError(
Redirect.
"""
assert failure.value is not None
url = URL.fromText(failure.value.args[0])
assert isinstance(failure.value, RequestRedirect)
url = URL.fromText(failure.value.new_url)
return redirect(request, url)

@self.handle_errors(NotFound)
Expand Down

0 comments on commit e64c574

Please sign in to comment.