Comment 3 for bug 926577

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 926577] Re: command-not-found is hiding exception/backtrace when crashing

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