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 56
56
"gunicorn==20.1.0" ,
57
57
"uvicorn==0.18.2" ,
58
58
"python-dotenv==0.19.2" ,
59
+ "tzdata==2021.5" ,
59
60
]
60
61
),
61
62
}
Original file line number Diff line number Diff line change 49
49
from supertokens_python .normalised_url_path import NormalisedURLPath
50
50
from supertokens_python .querier import Querier
51
51
from supertokens_python .async_to_sync_wrapper import sync
52
+ from werkzeug .exceptions import NotFound
52
53
53
54
54
55
protected_prop_name = {
@@ -697,6 +698,8 @@ def test_error():
697
698
698
699
@app .errorhandler (Exception ) # type: ignore
699
700
def handle_exception (e ): # type: ignore
701
+ if isinstance (e , NotFound ):
702
+ return Response (str (e ), status = 404 )
700
703
return Response (str (e ), status = 500 ) # type: ignore
701
704
702
705
You can’t perform that action at this time.
0 commit comments