Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning None where messagelist dict expected #161

Closed
sigma914 opened this issue Jan 28, 2015 · 1 comment
Closed

Returning None where messagelist dict expected #161

sigma914 opened this issue Jan 28, 2015 · 1 comment

Comments

@sigma914
Copy link

I've found and error in v6.5.7-rc2

This seems to be caused by setting messagelist to None to invalidate a cache and then not checking it in various places.

ERROR: ERROR in syncfolder for <snip> folder Sent: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 466, in syncfolder
    remotefolder.syncmessagesto(localfolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 893, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 787, in __syncmessagesto_delete
    statusfolder.getmessageuidlist())
  File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 277, in getmessageuidlist
    return self.getmessagelist().keys()
AttributeError: 'NoneType' object has no attribute 'keys'
@nicolas33 nicolas33 added the bug label Feb 12, 2015
@nicolas33 nicolas33 added this to the 6.5.7 (next minor) milestone Feb 12, 2015
@nicolas33
Copy link
Member

Fixed in 9e63fa3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants