Skip to main content

async_warn_catch_exception

def async_warn_catch_exception(logger: Logger=logging.getLogger(__name__),
                               exception: type[Exception]=Exception) -> Any
A function wrapper that catches exceptions and logs them to the logger. Arguments
  • exception:
  • logger:
Returns
  • Callable:

warn_catch_exception

def warn_catch_exception(logger: Logger=logging.getLogger(__name__),
                         exception: type[Exception]=Exception) -> Any
A function wrapper that catches exceptions and logs them to the logger. Arguments
  • exception:
  • logger:
Returns
  • Callable: