Skip to content

Commit a020a68

Browse files
committed
silence mypy here
1 parent c0e3317 commit a020a68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intelmq_api/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ def handle_generic_error(request: Request, exc: StarletteHTTPException):
2121

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

0 commit comments

Comments
 (0)