mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-14 12:02:46 +02:00
8 lines
217 B
Python
8 lines
217 B
Python
import grpc
|
|
|
|
|
|
def generic_grpc_error_handler(error: grpc.aio._call.AioRpcError):
|
|
details = error.details()
|
|
logger.debug(details)
|
|
|
|
raise HTTPException(status.HTTP_500_INTERNAL_SERVER_ERROR, detail=details)
|