{"action":"created","issue":{"url":"https://api.github.com/repos/skarra/ASynK/issues/64","labels_url":"https://api.github.com/repos/skarra/ASynK/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/skarra/ASynK/issues/64/comments","events_url":"https://api.github.com/repos/skarra/ASynK/issues/64/events","html_url":"https://github.com/skarra/ASynK/issues/64","id":72387197,"number":64,"title":"AttributeError: 'list' object has no attribute 'strip'","user":{"login":"DamienCassou","id":217543,"avatar_url":"https://avatars.githubusercontent.com/u/217543?v=3","gravatar_id":"","url":"https://api.github.com/users/DamienCassou","html_url":"https://github.com/DamienCassou","followers_url":"https://api.github.com/users/DamienCassou/followers","following_url":"https://api.github.com/users/DamienCassou/following{/other_user}","gists_url":"https://api.github.com/users/DamienCassou/gists{/gist_id}","starred_url":"https://api.github.com/users/DamienCassou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DamienCassou/subscriptions","organizations_url":"https://api.github.com/users/DamienCassou/orgs","repos_url":"https://api.github.com/users/DamienCassou/repos","events_url":"https://api.github.com/users/DamienCassou/events{/privacy}","received_events_url":"https://api.github.com/users/DamienCassou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-01T08:50:57Z","updated_at":"2015-05-30T03:13:00Z","closed_at":null,"body":"I have a lot of contacts on a baikal carddav server and an non existing `~/.bbdb~. When I try to sync, I get:\r\n\r\n```\r\n$ ./asynk.py --op=sync --name carddav2bbdb --log=debug\r\n[...]\r\n[10:49:11.465    DEBUG] Successfully fetched and added contact: <One of my contacts>\r\n[10:49:11.465    DEBUG] Successfully fetched and added contact: <One of my contacts>\r\n[10:49:11.465 CRITICAL] Exception ('list' object has no attribute 'strip') while syncing profile carddav2bbdb\r\n[10:49:11.465 CRITICAL] Traceback (most recent call last):\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/asynk_core.py\", line 396, in op_sync\r\n    result = sync.sync(self.get_sync_dir())\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/sync.py\", line 295, in sync\r\n    sl1, sl2 = self.prep_lists(dirn)\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/sync.py\", line 283, in prep_lists\r\n    return self._prep_lists_2_way(self.get_f1(), self.get_f2())\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/sync.py\", line 178, in _prep_lists_2_way\r\n    f1.prep_sync_lists(f2.get_dbid(), f1sl)\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/folder_cd.py\", line 66, in prep_sync_lists\r\n    curi  = self.get_itemids(pname, destid)\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/folder_cd.py\", line 119, in get_itemids\r\n    self._refresh_contacts()\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/folder_cd.py\", line 318, in _refresh_contacts\r\n    con.get_disp_name())\r\n  File \"/home/cassou/Documents/projects/asynk/asynk/contact.py\", line 149, in get_disp_name\r\n    self.get_lastname()] if x])\r\nAttributeError: 'list' object has no attribute 'strip'\r\n```\r\n\r\nMy `state.json` is:\r\n```json\r\n{ \"app_root\" : \"/home/cassou/Documents/projects/asynk\",\r\n  \"asynk_user_dir\" : \"/home/cassou/.asynk\",\r\n  \"default_profile\" : \"carddav2bbdb\",\r\n  \"file_version\" : 4,\r\n  \"profiles\" : { \"carddav2bbdb\" : { \"coll_1\" : { \"dbid\" : \"cd\",\r\n              \"foid\" : \"default\",\r\n              \"stid\" : \"https://www.schplaf.org/baikal/card.php\"\r\n            },\r\n          \"coll_2\" : { \"dbid\" : \"bb\",\r\n              \"foid\" : \"default\",\r\n              \"stid\" : \"/home/cassou/.bbdb\"\r\n            },\r\n          \"conflict_resolve\" : \"cd\",\r\n          \"items\" : { \"e8d5bfefeab23559f5622b36ca5a7300a205f183f481f90b2be44202ce602854\" : \"a1b75163-ecb9-11e4-a5bf-406c8f5540b2\" },\r\n          \"last_sync_start\" : \"2015-04-29T08:42:02.81Z\",\r\n          \"last_sync_stop\" : \"2015-04-29T08:42:05.46Z\",\r\n          \"olgid\" : null,\r\n          \"sync_dir\" : \"SYNC2WAY\",\r\n          \"sync_state\" : null\r\n        } }\r\n```"},"comment":{"url":"https://api.github.com/repos/skarra/ASynK/issues/comments/106980020","html_url":"https://github.com/skarra/ASynK/issues/64#issuecomment-106980020","issue_url":"https://api.github.com/repos/skarra/ASynK/issues/64","id":106980020,"user":{"login":"skarra","id":633395,"avatar_url":"https://avatars.githubusercontent.com/u/633395?v=3","gravatar_id":"","url":"https://api.github.com/users/skarra","html_url":"https://github.com/skarra","followers_url":"https://api.github.com/users/skarra/followers","following_url":"https://api.github.com/users/skarra/following{/other_user}","gists_url":"https://api.github.com/users/skarra/gists{/gist_id}","starred_url":"https://api.github.com/users/skarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skarra/subscriptions","organizations_url":"https://api.github.com/users/skarra/orgs","repos_url":"https://api.github.com/users/skarra/repos","events_url":"https://api.github.com/users/skarra/events{/privacy}","received_events_url":"https://api.github.com/users/skarra/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T03:13:00Z","updated_at":"2015-05-30T03:13:00Z","body":"What is your CadDAV Server? We may be able pull the contact from the server filesystem"}}