Testing nonlocal fix for "connection" referenced before assignment.