AttributeError in Mail applet

Bug #271098 reported by Julien Lavergne
2
Affects Status Importance Assigned to Milestone
Universal Applets
Fix Committed
Undecided
Unassigned

Bug Description

Debian Lenny, up-to-date bzr.
Mail applet crash on startup with :
Traceback (most recent call last):
  File "/usr/share/screenlets/MailCheck/MailCheckScreenlet.py", line 65, in <module>
    class MailCheckScreenlet (screenlets.Screenlet):
  File "/usr/share/screenlets/MailCheck/MailCheckScreenlet.py", line 80, in MailCheckScreenlet
    __status = mail.MailCheckStatus.IDLE
AttributeError: 'NoneType' object has no attribute 'MailCheckStatus'

Revision history for this message
Przemysław Firszt (pefi) wrote :

We don't have any plugin named "Mail" so line:

mail = Plugins.importAPI('Mail')

doesn't import anything:

48 mail = Plugins.importAPI('Mail')
(Pydb) s
--Call--
(/usr/share/python2.5/site-packages/screenlets/plugin_loader.py:7): importAPI
7 def importAPI(module):
(Pydb) n
(/usr/share/python2.5/site-packages/screenlets/plugin_loader.py:9): importAPI
9 try:
(Pydb)
(/usr/share/python2.5/site-packages/screenlets/plugin_loader.py:10): importAPI
10 sys.path.append(PATH)
(Pydb)
(/usr/share/python2.5/site-packages/screenlets/plugin_loader.py:11): importAPI
11 mod = __import__(module)
(Pydb)
ImportError:'No module named Mail'

Revision history for this message
Natan Yellin (aantny) wrote :

Is this something we can import from screenlets?

Revision history for this message
Natan Yellin (aantny) wrote :

It's under the GPL, so I added it in revision 515.

I suspect that we'll end up disabling the MailScreenlet anyway for 0.1.

Changed in universal-applets:
status: New → Fix Committed
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.