from src.utils import response_creator, SERVER_ERROR


@response_creator
def handle_db_error(error):
    return 'Can\'t connect to main database', dict(database=['Can\'t connect to main database']),  SERVER_ERROR

819d9f8cf62e9bb08c60a80d4f3f3ae5f4bd4099
<mask token>

<mask token>


@response_creator
def handle_db_error(error):
    return "Can't connect to main database", dict(database=[
        "Can't connect to main database"]), SERVER_ERROR

from src.utils import response_creator, SERVER_ERROR


@response_creator
def handle_db_error(error):
    return "Can't connect to main database", dict(database=[
        "Can't connect to main database"]), SERVER_ERROR

from src.utils import response_creator, SERVER_ERROR


@response_creator
def handle_db_error(error):
    return 'Can\'t connect to main database', dict(database=['Can\'t connect to main database']),  SERVER_ERROR
