def try_except(func):
    """Try / except wrapper

    Args:
      func (lambda) : function to execute

    Returns fun output or 0 otherwise
    """

    def wrapper_func(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except RuntimeError:
            return 0

    return wrapper_func