def _callAppFunction(function):
    """
    Call C{function}.  If it raises an exception, log it with a minimal
    description of the source.

    @return: L{None}
    """
    try:
        function()
    except:
        _moduleLog.failure(
            u"Unexpected exception from {name}",
            name=fullyQualifiedName(function)
        )

    Call C{function}.  If it raises an exception, log it with a minimal
    description of the source.

    @return: L{None}
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/_newclient.py