{"action":"created","issue":{"url":"https://api.github.com/repos/persandstrom/python-verisure/issues/4","labels_url":"https://api.github.com/repos/persandstrom/python-verisure/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/persandstrom/python-verisure/issues/4/comments","events_url":"https://api.github.com/repos/persandstrom/python-verisure/issues/4/events","html_url":"https://github.com/persandstrom/python-verisure/issues/4","id":118391879,"number":4,"title":"Error when Verisure is down for maintenance","user":{"login":"lindehoff","id":2572410,"avatar_url":"https://avatars.githubusercontent.com/u/2572410?v=3","gravatar_id":"","url":"https://api.github.com/users/lindehoff","html_url":"https://github.com/lindehoff","followers_url":"https://api.github.com/users/lindehoff/followers","following_url":"https://api.github.com/users/lindehoff/following{/other_user}","gists_url":"https://api.github.com/users/lindehoff/gists{/gist_id}","starred_url":"https://api.github.com/users/lindehoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindehoff/subscriptions","organizations_url":"https://api.github.com/users/lindehoff/orgs","repos_url":"https://api.github.com/users/lindehoff/repos","events_url":"https://api.github.com/users/lindehoff/events{/privacy}","received_events_url":"https://api.github.com/users/lindehoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-23T14:28:52Z","updated_at":"2015-12-05T11:58:02Z","closed_at":null,"body":"When MyPage is down for maintenance you get the following error: \r\n```\r\nTraceback (most recent call last):\r\n  File \"verisure.py\", line 119, in <module>\r\n    with MyPages(args.username, args.password) as verisure:\r\n  File \"/verisure/mypages.py\", line 103, in __enter__\r\n    self.login()\r\n  File \"/verisure/mypages.py\", line 129, in login\r\n    status = _json_to_dict(response.text)\r\n  File \"/verisure/mypages.py\", line 285, in _json_to_dict\r\n    return eval(UNESCAPE(json))\r\n  File \"<string>\", line 1\r\n    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n    ^\r\nSyntaxError: invalid syntax\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/persandstrom/python-verisure/issues/comments/162175987","html_url":"https://github.com/persandstrom/python-verisure/issues/4#issuecomment-162175987","issue_url":"https://api.github.com/repos/persandstrom/python-verisure/issues/4","id":162175987,"user":{"login":"persandstrom","id":1887485,"avatar_url":"https://avatars.githubusercontent.com/u/1887485?v=3","gravatar_id":"","url":"https://api.github.com/users/persandstrom","html_url":"https://github.com/persandstrom","followers_url":"https://api.github.com/users/persandstrom/followers","following_url":"https://api.github.com/users/persandstrom/following{/other_user}","gists_url":"https://api.github.com/users/persandstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/persandstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/persandstrom/subscriptions","organizations_url":"https://api.github.com/users/persandstrom/orgs","repos_url":"https://api.github.com/users/persandstrom/repos","events_url":"https://api.github.com/users/persandstrom/events{/privacy}","received_events_url":"https://api.github.com/users/persandstrom/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T11:58:02Z","updated_at":"2015-12-05T11:58:02Z","body":"No, maybe I should take the time to go through all calls to the server. \r\nThe drawback in catching errors and replacing them with readable ones is that I loose the original information needed to fix bugs. So I'm a bit torn here.   "}}