error formatter loads wrong file

Bug #346094 reported by Collin Stocks
2
Affects Status Importance Assigned to Milestone
gdesklets (Ubuntu)
New
Undecided
Unassigned

Bug Description

When a desklet crashes in gdesklets (cpuspeed-temp, in this case), an error message is supposed to show up with the file that had the crash and the surrounding lines with the line that had an exception highlighted.

Anyway, it loads the wrong file. In fact, it loads the error formatter file:

###
Non-ASCII character '\xc2' in file ./CPUTemp/__init__.py on line 65, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details (__init__.py, line
65)
/usr/lib/gdesklets/utils/ErrorFormatter.py
   60 # get last traceback (otherwise we would load the wrong file for
   61 # hilighting)
   62 this_tb = exc_tb
   63 while (this_tb.tb_next):
   64 tmp = this_tb
> 65 del this_tb
   66 this_tb = tmp.tb_next
   67 del tmp
   68
   69 # get the .py file; we don't want .pyc or .pyo!
   70 path = this_tb.tb_frame.f_globals.get("__file__")
   71 del this_tb
###

The error was actually in line 65 of /usr/share/gdesklets/Sensors/CPUTemp/__init__.py

gdesklets version: 0.36-4
ubuntu version: 8.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.