src/dirbs/api/__init__.py
def validate_exempted_device_types() -> None:
    """Function to validate exempted devices types before the first request.

    Raises:
        ServiceUnavailable: if invalid device types specified in exempted device types in config
    """
    with get_db_connection() as conn:
        try:
            utils.validate_exempted_device_types(conn, app.config['DIRBS_CONFIG'])
        except ConfigParseException:
            msg = 'Exempted device types specified in config are not valid device types as per GSMA database.'
            raise ServiceUnavailable(description=msg)
Function to validate exempted devices types before the first request.

    Raises:
        ServiceUnavailable: if invalid device types specified in exempted device types in config
    
Function to validate exempted devices types before the first request.
Function to validate exempted devices types before the first request .
def validate_exempted_device_types() -> None:
    with get_db_connection() as conn:
        try:
            utils.validate_exempted_device_types(conn, app.config['DIRBS_CONFIG'])
        except ConfigParseException:
            msg = 'Exempted device types specified in config are not valid device types as per GSMA database.'
            raise ServiceUnavailable(description=msg)
def validate_exempted_device_types ( ) -> None : with get_db_connection ( ) as conn : try : utils . validate_exempted_device_types ( conn , app . config [ 'DIRBS_CONFIG' ] ) except ConfigParseException : msg = 'Exempted device types specified in config are not valid device types as per GSMA database.' raise ServiceUnavailable ( description = msg )
Function to validate exempted devices types before the first request.
Function to validate exempted devices types before the first request .
"""Function to validate exempted devices types before the first request.

    Raises:
        ServiceUnavailable: if invalid device types specified in exempted device types in config
    """
if invalid device types specified in exempted device types in config
if invalid device types specified in exempted device types in config
ServiceUnavailable