-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Certain string searches using pc_query fail with the following message:
plega@serpentine pycarddav$ pc_query "Philip"
searching for Philip...
Traceback (most recent call last):
File "/usr/bin/pc_query", line 4, in
import('pkg_resources').run_script('pyCardDAV===0.7.0.dev-29-gedc9150', 'pc_query')
File "/usr/lib/python2.7/site-packages/setuptools-18.0.1-py2.7.egg/pkg_resources/init.py", line 735, in run_script
File "/usr/lib/python2.7/site-packages/setuptools-18.0.1-py2.7.egg/pkg_resources/init.py", line 1659, in run_script
File "/usr/lib/python2.7/site-packages/pyCardDAV-0.7.0.dev_29_gedc9150-py2.7.egg/EGG-INFO/scripts/pc_query", line 138, in
File "build/bdist.linux-x86_64/egg/pycarddav/controllers/query.py", line 60, in query
File "build/bdist.linux-x86_64/egg/pycarddav/controllers/query.py", line 118, in search
File "build/bdist.linux-x86_64/egg/pycarddav/backend.py", line 122, in search
File "build/bdist.linux-x86_64/egg/pycarddav/backend.py", line 122, in
File "build/bdist.linux-x86_64/egg/pycarddav/backend.py", line 355, in get_vcard_from_data
File "build/bdist.linux-x86_64/egg/pycarddav/model.py", line 142, in vcard_from_string
File "build/bdist.linux-x86_64/egg/pycarddav/model.py", line 110, in vcard_from_vobject
File "build/bdist.linux-x86_64/egg/pycarddav/model.py", line 103, in fix_vobjectname
AttributeError: 'Name' object has no attribute 'strip'
Interestingly, pc_query exits gracefully if the search string is not found; and when the string is found it often provides the correct output. The funny thing is that it seems to fail when the search string scores a hit on a word that's in the database with a preceding space (but I haven't done exhaustive testing).
This was working perfectly - but I upgraded from Fedora 23 to 24 and now it's broken. Any suggestions ? Same problem with v0.7.0 and with the current dev version referenced above.