1
0
forked from clan/clan-core

fix clan_error_handler type

This commit is contained in:
Jörg Thalheim 2023-11-03 14:48:14 +01:00
parent 557a0db7d1
commit c5007ce7e3

View File

@ -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 = [
{