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¶
|
Helper decorator which suppress any |
Attributes¶
- airflow.providers.amazon.aws.utils.suppress.return_on_error(return_value)[source]¶
Helper decorator which 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
.