freelancing-solutions / gcp-database-as-a-service-stock-markets

GCP NDB database as a service for a stock market investment and social web services.
MIT License
3 stars 1 forks source link

- send an sms notification or email message with the error message for each erro... #473

Open freelancing-solutions opened 3 years ago

freelancing-solutions commented 3 years ago

noinspection PyUnusedLocal

https://github.com/freelancing-solutions/gcp-database-as-a-service-stock-markets/blob/c275b5cb5b6a55068f4588336cd973f57700a978/data_service/handlers/routes.py#L18


    """
        Use Context will create a database connection
        APP-Engine Warm UP Handler
        # TODO - send a message that another instance has started up
    """
    return "OK", 200

# TODO - send an sms notification or email message with the error message for each error
# noinspection PyUnusedLocal
@default_handlers_bp.app_errorhandler(BadRequest)
def handle_bad_request(e: BadRequest) -> tuple:

1666a9fc243dba9349d9c740eb82d31e60e24e22