{"action":"created","issue":{"url":"https://api.github.com/repos/iminurnamez/pyroller/issues/109","labels_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/109/comments","events_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/109/events","html_url":"https://github.com/iminurnamez/pyroller/issues/109","id":53963311,"number":109,"title":"KeyError","user":{"login":"metulburr","id":1296083,"avatar_url":"https://avatars.githubusercontent.com/u/1296083?v=3","gravatar_id":"","url":"https://api.github.com/users/metulburr","html_url":"https://github.com/metulburr","followers_url":"https://api.github.com/users/metulburr/followers","following_url":"https://api.github.com/users/metulburr/following{/other_user}","gists_url":"https://api.github.com/users/metulburr/gists{/gist_id}","starred_url":"https://api.github.com/users/metulburr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metulburr/subscriptions","organizations_url":"https://api.github.com/users/metulburr/orgs","repos_url":"https://api.github.com/users/metulburr/repos","events_url":"https://api.github.com/users/metulburr/events{/privacy}","received_events_url":"https://api.github.com/users/metulburr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T16:37:29Z","updated_at":"2015-01-11T01:34:53Z","closed_at":null,"body":"I get a KeyError from using cli args from what i believe is from the last few commits as it worked updated yesterday. \r\n\r\nthe args i am using are: (and error)\r\n\r\n    metulburr@ubuntu ~/repos/pyroller $ python3 pyroller.py -c -S CRAPS -d\r\n    Loading chipmunk for Linux (64bit) [/home/metulburr/repos/pyroller/pymunk/libchipmunk64.so]\r\n    Traceback (most recent call last):\r\n      File \"pyroller.py\", line 8, in <module>\r\n        main()\r\n      File \"/home/metulburr/repos/pyroller/data/main.py\", line 25, in main\r\n        \"TITLESCREEN\" : title_screen.TitleScreen(),\r\n      File \"/home/metulburr/repos/pyroller/data/states/title_screen.py\", line 51, in __init__\r\n        self.check_straight_arg()\r\n      File \"/home/metulburr/repos/pyroller/data/states/title_screen.py\", line 69, in check_straight_arg\r\n        self.persist[\"casino_player\"] = CasinoPlayer(self.stats)\r\n      File \"/home/metulburr/repos/pyroller/data/components/casino_player.py\", line 53, in __init__\r\n        self.stats[game][stat] = stats[game][stat]\r\n    KeyError: 'Video Poker'\r\n    metulburr@ubuntu ~/repos/pyroller  $ python pyroller.py -c -S CRAPS -d\r\n    Loading chipmunk for Linux (64bit) [/home/metulburr/repos/pyroller/pymunk/libchipmunk64.so]\r\n    Traceback (most recent call last):\r\n      File \"pyroller.py\", line 8, in <module>\r\n        main()\r\n      File \"/home/metulburr/repos/pyroller/data/main.py\", line 25, in main\r\n        \"TITLESCREEN\" : title_screen.TitleScreen(),\r\n      File \"/home/metulburr/repos/pyroller/data/states/title_screen.py\", line 51, in __init__\r\n        self.check_straight_arg()\r\n      File \"/home/metulburr/repos/pyroller/data/states/title_screen.py\", line 69, in check_straight_arg\r\n        self.persist[\"casino_player\"] = CasinoPlayer(self.stats)\r\n      File \"/home/metulburr/repos/pyroller/data/components/casino_player.py\", line 53, in __init__\r\n        self.stats[game][stat] = stats[game][stat]\r\n    KeyError: 'Video Poker'\r\n\r\nEDIT:\r\nfound it is the result of only the -S option"},"comment":{"url":"https://api.github.com/repos/iminurnamez/pyroller/issues/comments/69479898","html_url":"https://github.com/iminurnamez/pyroller/issues/109#issuecomment-69479898","issue_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/109","id":69479898,"user":{"login":"Mekire","id":2884714,"avatar_url":"https://avatars.githubusercontent.com/u/2884714?v=3","gravatar_id":"","url":"https://api.github.com/users/Mekire","html_url":"https://github.com/Mekire","followers_url":"https://api.github.com/users/Mekire/followers","following_url":"https://api.github.com/users/Mekire/following{/other_user}","gists_url":"https://api.github.com/users/Mekire/gists{/gist_id}","starred_url":"https://api.github.com/users/Mekire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mekire/subscriptions","organizations_url":"https://api.github.com/users/Mekire/orgs","repos_url":"https://api.github.com/users/Mekire/repos","events_url":"https://api.github.com/users/Mekire/events{/privacy}","received_events_url":"https://api.github.com/users/Mekire/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T01:34:53Z","updated_at":"2015-01-11T01:34:53Z","body":"Your json file is just out of date.  Easiest fix is to delete it and let it get rebuilt.  Video poker and pachinko have now been added to the stats screen.  when you use the -S flag the game uses load game, rather than new game.  "}}