{"action":"created","issue":{"url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/300","labels_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/300/comments","events_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/300/events","html_url":"https://github.com/untitaker/vdirsyncer/issues/300","id":119315613,"number":300,"title":"Error out nicely when URL is not working","user":{"login":"mbaldessari","id":55681,"avatar_url":"https://avatars.githubusercontent.com/u/55681?v=3","gravatar_id":"","url":"https://api.github.com/users/mbaldessari","html_url":"https://github.com/mbaldessari","followers_url":"https://api.github.com/users/mbaldessari/followers","following_url":"https://api.github.com/users/mbaldessari/following{/other_user}","gists_url":"https://api.github.com/users/mbaldessari/gists{/gist_id}","starred_url":"https://api.github.com/users/mbaldessari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbaldessari/subscriptions","organizations_url":"https://api.github.com/users/mbaldessari/orgs","repos_url":"https://api.github.com/users/mbaldessari/repos","events_url":"https://api.github.com/users/mbaldessari/events{/privacy}","received_events_url":"https://api.github.com/users/mbaldessari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/untitaker/vdirsyncer/labels/cat:%20ui","name":"cat: ui","color":"5319e7"},{"url":"https://api.github.com/repos/untitaker/vdirsyncer/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T20:07:28Z","updated_at":"2015-11-28T20:09:35Z","closed_at":null,"body":"Noticed the following when trying to sync birthdays from facebook via an outdated URL (url tweaked as it contains sensitive data):\r\n```\r\nSyncing my_fb_birthdays\r\ndebug: Loaded status for my_fb_birthdays\r\ndebug: GET https://www.facebook.com/ical/b.php?uid=1234&key=123\r\ndebug: {'User-Agent': 'vdirsyncer'}\r\ndebug: None\r\ndebug: Sending request...\r\ndebug: Removing latin1 fallback\r\ndebug: 200\r\ndebug: {'date': 'Sat, 28 Nov 2015 20:01:07 GMT', 'connection': 'keep-alive', 'content-type': 'text/html', 'x-fb-debug': 'bRvdRr8zA63qGdgOjMmL+kIWrBxq5esLAvykehGG7M1M5lqEETqWWs/6tBKz4mBrL8woQlW59YzTanA6iz7c/w==', 'content-length': '55'}\r\ndebug: Spiacenti, questo indirizzo non è valido o è scaduto.\r\nUnhandled exception occured for my_fb_birthdays.\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/cli/tasks.py\", line 58, in sync_collection\r\n    force_delete=force_delete\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/sync.py\", line 169, in sync\r\n    b_info.prepare_idents(storage_a.read_only)\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/sync.py\", line 104, in prepare_idents\r\n    for href, etag in self.storage.list():\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/storage/http.py\", line 149, in list\r\n    for item in split_collection(r.text):\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/utils/vobject.py\", line 132, in split_collection\r\n    for main in _Component.parse(text, multiple=True):\r\n  File \"/usr/lib/python2.7/site-packages/vdirsyncer/utils/vobject.py\", line 251, in parse\r\n    stack[-1].props.append(line)\r\nIndexError: list index out of range\r\n```\r\n\r\nMight be nice to try and error out a bit more informatively. This happened with 0.7.3\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28680049-error-out-nicely-when-url-is-not-working?utm_campaign=plugin&utm_content=tracker%2F574345&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F574345&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/comments/160332740","html_url":"https://github.com/untitaker/vdirsyncer/issues/300#issuecomment-160332740","issue_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/300","id":160332740,"user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T20:09:35Z","updated_at":"2015-11-28T20:09:35Z","body":"Agreed."}}