teythoon/afew — Issue #29: new configparser: type error
Author: herrsimon
Created: 2012-02-10 23:39:48+00:00
State: open

Hi,

I've pulled the latest commit ef513006ad57eb436796e7a9a10c85df63df2877 and get the following error (all filters in afew's config enabled, my [new] section in notmuch-config reads 'tags = new' ):

Traceback (most recent call last):
File "/usr/bin/afew", line 139, in
query_string = get_notmuch_new_query()
File "/usr/lib/python2.7/site-packages/afew/NotmuchSettings.py", line 36, in get_notmuch_new_query
return '(%s)' % ' AND '.join('tag:%s' % tag for tag in get_notmuch_new_tags())
File "/usr/lib/python2.7/site-packages/afew/NotmuchSettings.py", line 33, in get_notmuch_new_tags
return notmuch_settings.get_list('new', 'tags')
File "/usr/lib/python2.7/site-packages/afew/configparser.py", line 35, in get_list
return filter(None, result)
File "/usr/lib/python2.7/site-packages/afew/configparser.py", line 30, in
for value in self.get(section, key).split(delimiter))
TypeError: descriptor 'strip' requires a 'str' object but received a 'unicode'
[1] 29846 exit 1 afew --dry-run --tag --new -vvv

Looks like a pesky unicode problem again :-)