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
Attributes¶
Functions¶
|
Suppress any |
Module Contents¶
- airflow.providers.amazon.aws.utils.suppress.return_on_error(return_value)[source]¶
Suppress any
Exceptionraised 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,SystemExitand 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.