forked from clan/clan-core
fix clan_error_handler type
This commit is contained in:
parent
557a0db7d1
commit
c5007ce7e3
@ -9,7 +9,8 @@ from ..errors import ClanError
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def clan_error_handler(request: Request, exc: ClanError) -> JSONResponse:
|
||||
def clan_error_handler(request: Request, exc: Exception) -> JSONResponse:
|
||||
assert isinstance(exc, ClanError)
|
||||
log.error("ClanError: %s", exc)
|
||||
detail = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user