def is_valid_url(s):
    """Returns `True` if the given string is a valid URL.  This calls
Django's `URLValidator()`, but does not raise an exception.

    """
    try:
        validate_url(s)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open lsaffre/lino/lino/core/utils.py/is_valid_url