We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece3ba0 commit fabf774Copy full SHA for fabf774
setup.py
@@ -56,6 +56,7 @@
56
"gunicorn==20.1.0",
57
"uvicorn==0.18.2",
58
"python-dotenv==0.19.2",
59
+ "tzdata==2021.5",
60
]
61
),
62
}
tests/frontendIntegration/flask-server/app.py
@@ -49,6 +49,7 @@
49
from supertokens_python.normalised_url_path import NormalisedURLPath
50
from supertokens_python.querier import Querier
51
from supertokens_python.async_to_sync_wrapper import sync
52
+from werkzeug.exceptions import NotFound
53
54
55
protected_prop_name = {
@@ -697,6 +698,8 @@ def test_error():
697
698
699
@app.errorhandler(Exception) # type: ignore
700
def handle_exception(e): # type: ignore
701
+ if isinstance(e, NotFound):
702
+ return Response(str(e), status=404)
703
return Response(str(e), status=500) # type: ignore
704
705
0 commit comments