Skip to content

Commit 4dd7dfb

Browse files
committed
feat(error_handler): Add handler
1 parent 78faf30 commit 4dd7dfb

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
@app.errorhandler(HTTPException)
3838
def errorhandler(e):
39-
# print("tutu", e, flush=True)
4039
return handle_exception(e)
4140

4241

@@ -45,9 +44,7 @@ def errorhandler(e):
4544
methods=["POST"],
4645
)
4746
def return_error():
48-
# print("return_error 123", flush=True)
4947
flask.abort(500, f"Test")
50-
# return flask.make_response({}, 500)
5148

5249

5350
# ''' Main '''

tests/test_functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import os
22
import uuid
33
from src.opengeodeweb_back import geode_functions, geode_objects
4-
from werkzeug.exceptions import HTTPException
5-
from jsonschema import validate
6-
from jsonschema.exceptions import ValidationError
74

85

96
data_folder = os.path.join(os.path.dirname(__file__), "data")

0 commit comments

Comments
 (0)