(func, default=None)
Try return the result of func, else return default.
Try return the result of func, else return default.
Try return the result of func else return default .
def try_(func, default=None):
    """Try return the result of func, else return default."""
    try:
        return func()
    except Exception:  # pylint: disable=broad-except
        return default
def try_ ( func , default = None ) : try : return func ( ) except Exception : # pylint: disable=broad-except return default