{"action":"created","issue":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/368","repository_url":"https://api.github.com/repos/ultrabug/py3status","labels_url":"https://api.github.com/repos/ultrabug/py3status/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/ultrabug/py3status/issues/368/comments","events_url":"https://api.github.com/repos/ultrabug/py3status/issues/368/events","html_url":"https://github.com/ultrabug/py3status/pull/368","id":166236703,"number":368,"title":"New module: coin_balance","user":{"login":"fmorgner","id":196091,"avatar_url":"https://avatars.githubusercontent.com/u/196091?v=3","gravatar_id":"","url":"https://api.github.com/users/fmorgner","html_url":"https://github.com/fmorgner","followers_url":"https://api.github.com/users/fmorgner/followers","following_url":"https://api.github.com/users/fmorgner/following{/other_user}","gists_url":"https://api.github.com/users/fmorgner/gists{/gist_id}","starred_url":"https://api.github.com/users/fmorgner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmorgner/subscriptions","organizations_url":"https://api.github.com/users/fmorgner/orgs","repos_url":"https://api.github.com/users/fmorgner/repos","events_url":"https://api.github.com/users/fmorgner/events{/privacy}","received_events_url":"https://api.github.com/users/fmorgner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-19T02:50:59Z","updated_at":"2016-07-19T08:03:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ultrabug/py3status/pulls/368","html_url":"https://github.com/ultrabug/py3status/pull/368","diff_url":"https://github.com/ultrabug/py3status/pull/368.diff","patch_url":"https://github.com/ultrabug/py3status/pull/368.patch"},"body":"The 'coin_balance' module fetches the users balances of different\r\ncrypto-currencies from a user-defined server. The currently supported\r\ncoins are: Bitcoin, Dogecoin, and Litecoin. 'coin_balance' requires a\r\nserver that is compatible with the Bitcoin RPC protocol and is easily\r\nextendable to new crypto-currencies by extending the 'COIN_PORTS'\r\ndictionary."},"comment":{"url":"https://api.github.com/repos/ultrabug/py3status/issues/comments/233559561","html_url":"https://github.com/ultrabug/py3status/pull/368#issuecomment-233559561","issue_url":"https://api.github.com/repos/ultrabug/py3status/issues/368","id":233559561,"user":{"login":"tobes","id":56311,"avatar_url":"https://avatars.githubusercontent.com/u/56311?v=3","gravatar_id":"","url":"https://api.github.com/users/tobes","html_url":"https://github.com/tobes","followers_url":"https://api.github.com/users/tobes/followers","following_url":"https://api.github.com/users/tobes/following{/other_user}","gists_url":"https://api.github.com/users/tobes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobes/subscriptions","organizations_url":"https://api.github.com/users/tobes/orgs","repos_url":"https://api.github.com/users/tobes/repos","events_url":"https://api.github.com/users/tobes/events{/privacy}","received_events_url":"https://api.github.com/users/tobes/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T08:03:36Z","updated_at":"2016-07-19T08:03:36Z","body":"`OSError` catches a wider bunch but probably fills your need here.\r\n\r\n```\r\nfrom errno import ENOENT\r\n...\r\nexcept OSError as e:\r\n    if e.errno == ENOENT:\r\n        # file not found\r\n```\r\nis the equivalent of  FileNotFoundError that works in python 2/3 but is horrible"}}
{"actor":{"display_login":"tobes"}}