Comment 2 for bug 926577

Revision history for this message
Alistair Buxton (a-j-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