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?
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?