File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
tests/frontendIntegration/flask-server Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 5656 "gunicorn==20.1.0" ,
5757 "uvicorn==0.18.2" ,
5858 "python-dotenv==0.19.2" ,
59+ "tzdata==2021.5" ,
5960 ]
6061 ),
6162}
Original file line number Diff line number Diff line change 4949from supertokens_python .normalised_url_path import NormalisedURLPath
5050from supertokens_python .querier import Querier
5151from supertokens_python .async_to_sync_wrapper import sync
52+ from werkzeug .exceptions import NotFound
5253
5354
5455protected_prop_name = {
@@ -697,6 +698,8 @@ def test_error():
697698
698699@app .errorhandler (Exception ) # type: ignore
699700def handle_exception (e ): # type: ignore
701+ if isinstance (e , NotFound ):
702+ return Response (str (e ), status = 404 )
700703 return Response (str (e ), status = 500 ) # type: ignore
701704
702705
You can’t perform that action at this time.
0 commit comments