This is very easily fixed by putting:
try:
   import ...
except ImportError:
   exit(..)

around the imports.

You can also use:

try:
   crash_guard(main, BUG_REPORT_URL, __version__)
except KeyboardInterrupt:
   pass

lower down to stop a Ctrl+C from creating tonnes of error messages.


I'd love to submit this as a patch however have no idea how to. If anyone would 
be interested in explaining how, or have some feedback on this fix, could you 
send me an email at timdavi...@gmail.com. Thanks.

-- 
command-not-found crash on CTRL+C exit
https://bugs.launchpad.net/bugs/146864
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to