mod9-py3fstasks/main.py
def _create_queue_if():
    'app-internal function creating default queue if it does not exist'
    try:
        ts_client.get_queue(name=QUEUE_PATH)
    except Exception as e:
        if 'does not exist' in str(e):
            ts_client.create_queue(parent=PATH_PREFIX,
                    queue={'name': QUEUE_PATH})
    return True
app-internal function creating default queue if it does not exist
app-internal function creating default queue if it does not exist
app - internal function creating default queue if it does not exist
def _create_queue_if():
    try:
        ts_client.get_queue(name=QUEUE_PATH)
    except Exception as e:
        if 'does not exist' in str(e):
            ts_client.create_queue(parent=PATH_PREFIX,
                    queue={'name': QUEUE_PATH})
    return True
def _create_queue_if ( ) : try : ts_client . get_queue ( name = QUEUE_PATH ) except Exception as e : if 'does not exist' in str ( e ) : ts_client . create_queue ( parent = PATH_PREFIX , queue = { 'name' : QUEUE_PATH } ) return True
app-internal function creating default queue if it does not exist
app - internal function creating default queue if it does not exist
'app-internal function creating default queue if it does not exist'