Skip to content

AttributeError: 'filter' object has no attribute 'remove' #158

@mkaito

Description

@mkaito

This has been happening for about a week now. No changes made to config when it happened.

Traceback (most recent call last):
  File "/usr/bin/afew", line 11, in <module>
    load_entry_point('afew==1.1.1.dev15+g7f942f3', 'console_scripts', 'afew')()
  File "/usr/lib/python3.6/site-packages/afew/commands.py", line 131, in main
    query_string = get_notmuch_new_query()
  File "/usr/lib/python3.6/site-packages/afew/NotmuchSettings.py", line 41, in get_notmuch_new_query
    return '(%s)' % ' AND '.join('tag:%s' % tag for tag in get_notmuch_new_tags())
  File "/usr/lib/python3.6/site-packages/afew/NotmuchSettings.py", line 35, in get_notmuch_new_tags
    tags.remove("unread")
AttributeError: 'filter' object has no attribute 'remove'

❯ afew --version  
1.1.1.dev15+g7f942f3

❯ python --version                       
Python 3.6.2

❯ notmuch --version
notmuch 0.24.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions