app.utils#

Module Contents#

Functions#

key_error_silence()

Context manager that silences key errors exceptions.

guard_against_none_or_empty_str(value, name)

Guard against None or empty string.

guard_against_none(value, name)

Guard against None.

app.utils.key_error_silence()#

Context manager that silences key errors exceptions.

app.utils.guard_against_none_or_empty_str(value: str, name: str)#

Guard against None or empty string.

Parameters:#

value: str

The value to check.

name: str

The name of the value.

app.utils.guard_against_none(value, name: str)#

Guard against None.

Parameters:#

value: str

The value to check.

name: str

The name of the value.