This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
from llm_server.logging import create_logger
|
|
|
|
_logger = create_logger('handle_server_error')
|
|
|
|
|
|
def handle_server_error(e):
|
|
_logger.error(f'Internal Error: {e}')
|
|
return {'error': True, 'code': 500, 'message': 'Internal Server Error :('}, 500
|