On 02/04/2012 11:39 AM, Alistair Buxton wrote: > The problem is that the crash_guard tries to do (basically) this: > > print "Python version: %d.%d.%d %s %d" % sys.version_info > > This fails. Then the outer try: block catches and hides the exception > that this produces before exiting. > > I'm not sure if this is a python bug or change or what, but the > following code works instead: > > print "Python version: %d.%d.%d %s %d" % (sys.version_info.major, > sys.version_info.minor, sys.version_info.micro, > sys.version_info.releaselevel, sys.version_info.serial) > > or indeed: > > print "Python version: %s" % sys.version > > ** Changed in: command-not-found (Ubuntu) > Status: New => Confirmed >
I have a somewhat unfinished branch that fixes this and tries to work around most of the "I connected with putty and ubuntu does not work" issues. Thanks ZK -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926577 Title: command-not-found is hiding exception/backtrace when crashing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/926577/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
