airflow.providers.amazon.aws.utils.suppress

Module for suppress errors in Amazon Provider.

Warning

Only for internal usage, this module might be changed or removed in the future without any further notice.

meta

private

Module Contents

Functions

return_on_error(return_value)

Suppress any Exception raised in decorator function.

Attributes

PS

RT

log

airflow.providers.amazon.aws.utils.suppress.PS[source]
airflow.providers.amazon.aws.utils.suppress.RT[source]
airflow.providers.amazon.aws.utils.suppress.log[source]
airflow.providers.amazon.aws.utils.suppress.return_on_error(return_value)[source]

Suppress any Exception raised in decorator function.

Main use-case when functional is optional, however any error on functions/methods might raise any error which are subclass of Exception.

Note

Decorator doesn’t intend to catch BaseException, e.g. GeneratorExit, KeyboardInterrupt, SystemExit and others.

Warning

Only for internal usage, this decorator might be changed or removed in the future without any further notice.

Parameters

return_value (RT) – Return value if decorated function/method raise any Exception.

Was this entry helpful?