Skip to content

Commit

Permalink
remove errorhandlers
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed May 28, 2024
1 parent 07ff671 commit d92c368
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/pyflask/namespaces/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@

data_namespace = Namespace(name="data", description="API route for dataset generation in the NWB GUIDE.")


@data_namespace.errorhandler(Exception)
def exception_handler(error):
exceptiondata = traceback.format_exception(type(error), error, error.__traceback__)
return {"message": exceptiondata[-1], "traceback": "".join(exceptiondata)}


generate_test_data_parser = reqparse.RequestParser()
generate_test_data_parser.add_argument("output_path", type=str, required=True)

Expand Down
6 changes: 0 additions & 6 deletions src/pyflask/namespaces/neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
parser.add_argument("interfaces", type=str, action="split", help="Interfaces cannot be converted")


@neuroconv_namespace.errorhandler(Exception)
def exception_handler(error):
exceptiondata = traceback.format_exception(type(error), error, error.__traceback__)
return {"message": exceptiondata[-1], "traceback": "".join(exceptiondata)}


@neuroconv_namespace.route("/")
class AllInterfaces(Resource):
@neuroconv_namespace.doc(responses={200: "Success", 400: "Bad Request", 500: "Internal server error"})
Expand Down

0 comments on commit d92c368

Please sign in to comment.