Skip to content

Commit

Permalink
silence mypy here
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkaplan committed Mar 1, 2024
1 parent c0e3317 commit a020a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intelmq_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def handle_generic_error(request: Request, exc: StarletteHTTPException):

def register(app: FastAPI):
"""A hook to register handlers in the app. Need to be called before startup"""
app.add_exception_handler(runctl.IntelMQCtlError, ctl_error_handler)
app.add_exception_handler(StarletteHTTPException, handle_generic_error)
app.add_exception_handler(runctl.IntelMQCtlError, ctl_error_handler) # type: ignore
app.add_exception_handler(StarletteHTTPException, handle_generic_error) # type: ignore

0 comments on commit a020a68

Please sign in to comment.