Battery Applet crashes without Battery
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn Extras |
New
|
Undecided
|
Unassigned |
Bug Description
If no Battery is attached to my Thinkpad T420 the Battery applet crashes. The following message pops up: "An integer is required".
I'm using Ubuntu 11.04 with "Ubuntu Classic", Awn and the Extras from the Ubuntu repository.
awn-applet-
You can reproduce the bug by removing battery while running Ubuntu or booting without battery. Since only the applet and not Awn crashes, this bug is not critical. It's annoying and I think it should be easy to solve this issue. The battery state is checked somewhere. I would recommend to implement an "try catch"-block while checking battery state. If the check fails, notify the user "No battery attached" etc.
-------
Traceback (most recent call last):
File "/usr/lib/
applet_
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/lib/
return self.__
File "/usr/lib/
self.
File "/usr/lib/
return ConfigGObject()
File "/usr/lib/
bind_
File "/usr/lib/
set_
File "/usr/lib/
widget.
TypeError: an integer is required