Skip to content

Commit fabf774

Browse files
committed
fixes bugs
1 parent ece3ba0 commit fabf774

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"gunicorn==20.1.0",
5757
"uvicorn==0.18.2",
5858
"python-dotenv==0.19.2",
59+
"tzdata==2021.5",
5960
]
6061
),
6162
}

tests/frontendIntegration/flask-server/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from supertokens_python.normalised_url_path import NormalisedURLPath
5050
from supertokens_python.querier import Querier
5151
from supertokens_python.async_to_sync_wrapper import sync
52+
from werkzeug.exceptions import NotFound
5253

5354

5455
protected_prop_name = {
@@ -697,6 +698,8 @@ def test_error():
697698

698699
@app.errorhandler(Exception) # type: ignore
699700
def 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

0 commit comments

Comments
 (0)