def if_not_none(func, value):
if value is None:<EOL><INDENT>return<EOL><DEDENT>return func(value)<EOL>
Apply func to value if value is not None

    Examples
    --------
    >>> from gwpy.utils.misc import if_not_none
    >>> if_not_none(int, '1')
    1
    >>> if_not_none(int, None)
    None