{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2523","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2523/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2523/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2523/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/2523","id":169204436,"number":2523,"title":"Crash after bot restart - Inventory Delta (Dev)","user":{"login":"alb3rto","id":20753127,"avatar_url":"https://avatars.githubusercontent.com/u/20753127?v=3","gravatar_id":"","url":"https://api.github.com/users/alb3rto","html_url":"https://github.com/alb3rto","followers_url":"https://api.github.com/users/alb3rto/followers","following_url":"https://api.github.com/users/alb3rto/following{/other_user}","gists_url":"https://api.github.com/users/alb3rto/gists{/gist_id}","starred_url":"https://api.github.com/users/alb3rto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alb3rto/subscriptions","organizations_url":"https://api.github.com/users/alb3rto/orgs","repos_url":"https://api.github.com/users/alb3rto/repos","events_url":"https://api.github.com/users/alb3rto/events{/privacy}","received_events_url":"https://api.github.com/users/alb3rto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T18:46:19Z","updated_at":"2016-08-03T19:01:32Z","closed_at":null,"body":"### Expected Behavior\r\nRun the bot\r\n\r\n### Actual Behavior\r\n`File \"pokecli.py\", line 446, in <module>\r\n    main()\r\n  File \"pokecli.py\", line 71, in main\r\n    bot.tick()\r\n  File \"/home/alb3rto/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 92, in tick\r\n    if worker.work() == WorkerResult.RUNNING:\r\n  File \"/home/alb3rto/PokemonGo-Bot/pokemongo_bot/cell_workers/spin_fort.py\", line 72, in work\r\n    \" (Total: \" + str(self.bot.item_inventory_count(item_id)) + \")\", 'yellow'\r\n  File \"/home/alb3rto/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 421, in item_inventory_count\r\n    'GET_INVENTORY']['inventory_delta']['inventory_items']\r\nKeyError: 'inventory_delta'`\r\n\r\n### Steps to Reproduce\r\nStart bot\r\n\r\n\r\n### Other Information\r\nOS: ArchLinux\r\nGit Commit: 2f91fd0410eeda430aeb9cb956885eda8bf04e22\r\nPython Version: Python 2.7.12\r\n\r\nInventory is not full (248/350)"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/237337601","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/2523#issuecomment-237337601","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2523","id":237337601,"user":{"login":"outofink","id":6820239,"avatar_url":"https://avatars.githubusercontent.com/u/6820239?v=3","gravatar_id":"","url":"https://api.github.com/users/outofink","html_url":"https://github.com/outofink","followers_url":"https://api.github.com/users/outofink/followers","following_url":"https://api.github.com/users/outofink/following{/other_user}","gists_url":"https://api.github.com/users/outofink/gists{/gist_id}","starred_url":"https://api.github.com/users/outofink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outofink/subscriptions","organizations_url":"https://api.github.com/users/outofink/orgs","repos_url":"https://api.github.com/users/outofink/repos","events_url":"https://api.github.com/users/outofink/events{/privacy}","received_events_url":"https://api.github.com/users/outofink/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T19:01:32Z","updated_at":"2016-08-03T19:01:32Z","body":"Similar issue, slightly different traceback:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"pokecli.py\", line 446, in <module>\r\n    main()\r\n  File \"pokecli.py\", line 71, in main\r\n    bot.tick()\r\n  File \"/home/nope/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 92, in tick\r\n    if worker.work() == WorkerResult.RUNNING:\r\n  File \"/home/nope/PokemonGo-Bot/pokemongo_bot/cell_workers/recycle_items.py\", line 21, in work\r\n    item_count_dict = self.bot.item_inventory_count('all')\r\n  File \"/home/nope/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 421, in item_inventory_count\r\n    'GET_INVENTORY']['inventory_delta']['inventory_items']\r\nKeyError: 'inventory_delta'\r\n```"}}
{"actor":{"display_login":"outofink"}}