login route checked
This commit is contained in:
@@ -18,6 +18,10 @@ class ErrorHandlers:
|
||||
)
|
||||
self.status = status # from fastapi import status
|
||||
|
||||
@classmethod
|
||||
def create(cls, requests, exceptions, response_model, status):
|
||||
return cls(requests, exceptions, response_model, status)
|
||||
|
||||
def exception_handler_http(self, request, exc):
|
||||
exc_detail = getattr(exc, "detail", None)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user