genomepy.utils.try_except_pass

genomepy.utils.try_except_pass(errors, func, *args, **kwargs)

try to return FUNC with ARGS, pass on ERRORS

Parameters
  • errors – a single error, or a tuple of errors.

  • func – a function that takes args and kwargs