Comment 2 for bug 864461

Colin Watson (cjwatson) wrote :

This is a race condition; it happens if you manage to interrupt command-not-found before it's managed to import sys.

Perhaps the exception handler should import sys again?