[Bug 346094] [NEW] error formatter loads wrong file
Collin Stocks
collinstocks at gmail.com
Fri Mar 20 20:25:34 UTC 2009
Public bug reported:
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
** Affects: gdesklets (Ubuntu)
Importance: Undecided
Status: New
--
error formatter loads wrong file
https://bugs.launchpad.net/bugs/346094
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list