while true except keyboardinterrupt python