{"action":"created","comment":{"url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/comments/121266006","pull_request_review_id":43305653,"id":121266006,"diff_hunk":"@@ -15,7 +16,12 @@ def auto_build_defenses(self):\n         \"\"\"Auto build defenses on all planets\"\"\"\n         planets = self.planets\n         for planet in planets:\n-            self.auto_build_defenses_to_planet(planet)\n+            try:\n+                self.auto_build_defenses_to_planet(planet)\n+\n+            except Exception as e:","path":"ogbot/core/defender.py","position":16,"original_position":16,"commit_id":"d245b6149e01e03ffa630ef7375f6a5a52e664a8","original_commit_id":"d245b6149e01e03ffa630ef7375f6a5a52e664a8","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Unused variable 'e'](https://www.codacy.com/app/winicius-cota/OG-Bot/pullRequest?prid=657674)","created_at":"2017-06-10T20:38:44Z","updated_at":"2017-06-10T20:38:44Z","html_url":"https://github.com/winiciuscota/OG-Bot/pull/22#discussion_r121266006","pull_request_url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/comments/121266006"},"html":{"href":"https://github.com/winiciuscota/OG-Bot/pull/22#discussion_r121266006"},"pull_request":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22","id":121154402,"html_url":"https://github.com/winiciuscota/OG-Bot/pull/22","diff_url":"https://github.com/winiciuscota/OG-Bot/pull/22.diff","patch_url":"https://github.com/winiciuscota/OG-Bot/pull/22.patch","issue_url":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/22","number":22,"state":"open","locked":false,"title":"Fixed some bugs + merged with dr1s latest changes [commit ff2c7b0]","user":{"login":"yosh778","id":2695804,"avatar_url":"https://avatars2.githubusercontent.com/u/2695804?v=3","gravatar_id":"","url":"https://api.github.com/users/yosh778","html_url":"https://github.com/yosh778","followers_url":"https://api.github.com/users/yosh778/followers","following_url":"https://api.github.com/users/yosh778/following{/other_user}","gists_url":"https://api.github.com/users/yosh778/gists{/gist_id}","starred_url":"https://api.github.com/users/yosh778/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosh778/subscriptions","organizations_url":"https://api.github.com/users/yosh778/orgs","repos_url":"https://api.github.com/users/yosh778/repos","events_url":"https://api.github.com/users/yosh778/events{/privacy}","received_events_url":"https://api.github.com/users/yosh778/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-17T21:16:17Z","updated_at":"2017-06-10T20:38:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"490540c071e8a836b4d9c7eb09b66435b6fbf0f7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22/commits","review_comments_url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22/comments","review_comment_url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/22/comments","statuses_url":"https://api.github.com/repos/winiciuscota/OG-Bot/statuses/d245b6149e01e03ffa630ef7375f6a5a52e664a8","head":{"label":"yosh778:master","ref":"master","sha":"d245b6149e01e03ffa630ef7375f6a5a52e664a8","user":{"login":"yosh778","id":2695804,"avatar_url":"https://avatars2.githubusercontent.com/u/2695804?v=3","gravatar_id":"","url":"https://api.github.com/users/yosh778","html_url":"https://github.com/yosh778","followers_url":"https://api.github.com/users/yosh778/followers","following_url":"https://api.github.com/users/yosh778/following{/other_user}","gists_url":"https://api.github.com/users/yosh778/gists{/gist_id}","starred_url":"https://api.github.com/users/yosh778/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosh778/subscriptions","organizations_url":"https://api.github.com/users/yosh778/orgs","repos_url":"https://api.github.com/users/yosh778/repos","events_url":"https://api.github.com/users/yosh778/events{/privacy}","received_events_url":"https://api.github.com/users/yosh778/received_events","type":"User","site_admin":false},"repo":{"id":91204891,"name":"OG-Bot","full_name":"yosh778/OG-Bot","owner":{"login":"yosh778","id":2695804,"avatar_url":"https://avatars2.githubusercontent.com/u/2695804?v=3","gravatar_id":"","url":"https://api.github.com/users/yosh778","html_url":"https://github.com/yosh778","followers_url":"https://api.github.com/users/yosh778/followers","following_url":"https://api.github.com/users/yosh778/following{/other_user}","gists_url":"https://api.github.com/users/yosh778/gists{/gist_id}","starred_url":"https://api.github.com/users/yosh778/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosh778/subscriptions","organizations_url":"https://api.github.com/users/yosh778/orgs","repos_url":"https://api.github.com/users/yosh778/repos","events_url":"https://api.github.com/users/yosh778/events{/privacy}","received_events_url":"https://api.github.com/users/yosh778/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yosh778/OG-Bot","description":"Automation for simple tasks in Ogame","fork":true,"url":"https://api.github.com/repos/yosh778/OG-Bot","forks_url":"https://api.github.com/repos/yosh778/OG-Bot/forks","keys_url":"https://api.github.com/repos/yosh778/OG-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yosh778/OG-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yosh778/OG-Bot/teams","hooks_url":"https://api.github.com/repos/yosh778/OG-Bot/hooks","issue_events_url":"https://api.github.com/repos/yosh778/OG-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/yosh778/OG-Bot/events","assignees_url":"https://api.github.com/repos/yosh778/OG-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/yosh778/OG-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/yosh778/OG-Bot/tags","blobs_url":"https://api.github.com/repos/yosh778/OG-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yosh778/OG-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yosh778/OG-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/yosh778/OG-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yosh778/OG-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/yosh778/OG-Bot/languages","stargazers_url":"https://api.github.com/repos/yosh778/OG-Bot/stargazers","contributors_url":"https://api.github.com/repos/yosh778/OG-Bot/contributors","subscribers_url":"https://api.github.com/repos/yosh778/OG-Bot/subscribers","subscription_url":"https://api.github.com/repos/yosh778/OG-Bot/subscription","commits_url":"https://api.github.com/repos/yosh778/OG-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/yosh778/OG-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/yosh778/OG-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/yosh778/OG-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/yosh778/OG-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/yosh778/OG-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yosh778/OG-Bot/merges","archive_url":"https://api.github.com/repos/yosh778/OG-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yosh778/OG-Bot/downloads","issues_url":"https://api.github.com/repos/yosh778/OG-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/yosh778/OG-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/yosh778/OG-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/yosh778/OG-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yosh778/OG-Bot/labels{/name}","releases_url":"https://api.github.com/repos/yosh778/OG-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/yosh778/OG-Bot/deployments","created_at":"2017-05-13T21:53:49Z","updated_at":"2017-05-13T21:53:51Z","pushed_at":"2017-06-10T18:28:38Z","git_url":"git://github.com/yosh778/OG-Bot.git","ssh_url":"git@github.com:yosh778/OG-Bot.git","clone_url":"https://github.com/yosh778/OG-Bot.git","svn_url":"https://github.com/yosh778/OG-Bot","homepage":"","size":314,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"winiciuscota:master","ref":"master","sha":"ec788c81e8512e7f017fea033cc2567a3d04563d","user":{"login":"winiciuscota","id":6284656,"avatar_url":"https://avatars1.githubusercontent.com/u/6284656?v=3","gravatar_id":"","url":"https://api.github.com/users/winiciuscota","html_url":"https://github.com/winiciuscota","followers_url":"https://api.github.com/users/winiciuscota/followers","following_url":"https://api.github.com/users/winiciuscota/following{/other_user}","gists_url":"https://api.github.com/users/winiciuscota/gists{/gist_id}","starred_url":"https://api.github.com/users/winiciuscota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winiciuscota/subscriptions","organizations_url":"https://api.github.com/users/winiciuscota/orgs","repos_url":"https://api.github.com/users/winiciuscota/repos","events_url":"https://api.github.com/users/winiciuscota/events{/privacy}","received_events_url":"https://api.github.com/users/winiciuscota/received_events","type":"User","site_admin":false},"repo":{"id":47084501,"name":"OG-Bot","full_name":"winiciuscota/OG-Bot","owner":{"login":"winiciuscota","id":6284656,"avatar_url":"https://avatars1.githubusercontent.com/u/6284656?v=3","gravatar_id":"","url":"https://api.github.com/users/winiciuscota","html_url":"https://github.com/winiciuscota","followers_url":"https://api.github.com/users/winiciuscota/followers","following_url":"https://api.github.com/users/winiciuscota/following{/other_user}","gists_url":"https://api.github.com/users/winiciuscota/gists{/gist_id}","starred_url":"https://api.github.com/users/winiciuscota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winiciuscota/subscriptions","organizations_url":"https://api.github.com/users/winiciuscota/orgs","repos_url":"https://api.github.com/users/winiciuscota/repos","events_url":"https://api.github.com/users/winiciuscota/events{/privacy}","received_events_url":"https://api.github.com/users/winiciuscota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/winiciuscota/OG-Bot","description":"Automation for simple tasks in Ogame","fork":false,"url":"https://api.github.com/repos/winiciuscota/OG-Bot","forks_url":"https://api.github.com/repos/winiciuscota/OG-Bot/forks","keys_url":"https://api.github.com/repos/winiciuscota/OG-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/winiciuscota/OG-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/winiciuscota/OG-Bot/teams","hooks_url":"https://api.github.com/repos/winiciuscota/OG-Bot/hooks","issue_events_url":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/winiciuscota/OG-Bot/events","assignees_url":"https://api.github.com/repos/winiciuscota/OG-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/winiciuscota/OG-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/winiciuscota/OG-Bot/tags","blobs_url":"https://api.github.com/repos/winiciuscota/OG-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/winiciuscota/OG-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/winiciuscota/OG-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/winiciuscota/OG-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/winiciuscota/OG-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/winiciuscota/OG-Bot/languages","stargazers_url":"https://api.github.com/repos/winiciuscota/OG-Bot/stargazers","contributors_url":"https://api.github.com/repos/winiciuscota/OG-Bot/contributors","subscribers_url":"https://api.github.com/repos/winiciuscota/OG-Bot/subscribers","subscription_url":"https://api.github.com/repos/winiciuscota/OG-Bot/subscription","commits_url":"https://api.github.com/repos/winiciuscota/OG-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/winiciuscota/OG-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/winiciuscota/OG-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/winiciuscota/OG-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/winiciuscota/OG-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/winiciuscota/OG-Bot/merges","archive_url":"https://api.github.com/repos/winiciuscota/OG-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/winiciuscota/OG-Bot/downloads","issues_url":"https://api.github.com/repos/winiciuscota/OG-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/winiciuscota/OG-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/winiciuscota/OG-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/winiciuscota/OG-Bot/labels{/name}","releases_url":"https://api.github.com/repos/winiciuscota/OG-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/winiciuscota/OG-Bot/deployments","created_at":"2015-11-29T23:19:58Z","updated_at":"2017-06-03T09:08:23Z","pushed_at":"2017-06-10T18:28:39Z","git_url":"git://github.com/winiciuscota/OG-Bot.git","ssh_url":"git@github.com:winiciuscota/OG-Bot.git","clone_url":"https://github.com/winiciuscota/OG-Bot.git","svn_url":"https://github.com/winiciuscota/OG-Bot","homepage":"","size":230,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22"},"html":{"href":"https://github.com/winiciuscota/OG-Bot/pull/22"},"issue":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/22"},"comments":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/winiciuscota/OG-Bot/statuses/d245b6149e01e03ffa630ef7375f6a5a52e664a8"}}}}
{"actor":{"display_login":"codacy-bot"}}