AttributeError in Mail: 'NoneType' object has no attribute 'split'

Bug #773928 reported by maxvidmax
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Low
Gabor Karsay

Bug Description

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1594, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 132, in __init__
    self.login(login_data)
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 285, in login
    self.mail.update()
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 1055, in update
    emails = [i for i in self.server.search(None, "(UNSEEN)")[1][0].split(" ") if i != ""]
AttributeError: 'NoneType' object has no attribute 'split'

Tags: mail traceback

Related branches

Revision history for this message
onox (onox) wrote :

Did you read the guidelines before submitting the bug?

Changed in awn-extras:
status: New → Incomplete
onox (onox)
summary: - AttributeError in Почтовый Апплет: 'NoneType' object has no attribute
- 'split'
+ AttributeError in Mail: 'NoneType' object has no attribute 'split'
tags: added: mail traceback
Revision history for this message
onox (onox) wrote :

Gabor Karsay: feel free to close this bug immediately by setting the Status to "Won't Fix" if you don't have a clue what's going on or don't have any time.

(It would have been nice if the bug reporter had given us some information about its system and how to reproduce this bug)

Changed in awn-extras:
assignee: nobody → Gabor Karsay (gabor-karsay)
Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Line number indicates it might be from trunk, I guess it's due to a non-standard IMAP server that returns None where it shouldn't. I'll have a look at it, but it will take some time.

Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Fix committed in rev. 1524. Obviously IMAP4.search() returned None which caused the crash. Documentation doesn't mention this case and examples there don't expect it to happen, so I don't know what triggered this.

Changed in awn-extras:
status: Incomplete → Fix Committed
importance: Undecided → Low
milestone: none → 0.4.2
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
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.