{"action":"created","comment":{"url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/comments/48676923","id":48676923,"diff_hunk":"@@ -220,9 +233,13 @@ def load_cache(cls, outputdir):\n     @classmethod\n     def save_cache(cls, outputdir):\n         cache_file = os.path.join(outputdir, \"uuidcache.dat\")\n-        gz = gzip.GzipFile(cache_file, \"wb\")\n-        json.dump(cls.uuid_cache, gz)\n-        logging.info(\"Wrote UUID cache with %d entries\", len(cls.uuid_cache.keys()))\n+        try:\n+            gz = gzip.GzipFile(cache_file + \".tmp\", \"wb\")\n+            json.dump(cls.uuid_cache, gz)\n+            os.rename(cache_file + \".tmp\", cache_file)","path":"overviewer_core/aux_files/genPOI.py","position":43,"original_position":43,"commit_id":"270741eb8f229a9b95bdb37745f8310554f7701e","original_commit_id":"270741eb8f229a9b95bdb37745f8310554f7701e","user":{"login":"CounterPillow","id":308818,"avatar_url":"https://avatars.githubusercontent.com/u/308818?v=3","gravatar_id":"","url":"https://api.github.com/users/CounterPillow","html_url":"https://github.com/CounterPillow","followers_url":"https://api.github.com/users/CounterPillow/followers","following_url":"https://api.github.com/users/CounterPillow/following{/other_user}","gists_url":"https://api.github.com/users/CounterPillow/gists{/gist_id}","starred_url":"https://api.github.com/users/CounterPillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CounterPillow/subscriptions","organizations_url":"https://api.github.com/users/CounterPillow/orgs","repos_url":"https://api.github.com/users/CounterPillow/repos","events_url":"https://api.github.com/users/CounterPillow/events{/privacy}","received_events_url":"https://api.github.com/users/CounterPillow/received_events","type":"User","site_admin":false},"body":"no, I'm talking about files.py in overviewer_core... which, uh... I think you wrote.","created_at":"2016-01-01T09:40:01Z","updated_at":"2016-01-01T09:40:01Z","html_url":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267#discussion_r48676923","pull_request_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267","_links":{"self":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/comments/48676923"},"html":{"href":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267#discussion_r48676923"},"pull_request":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267"}}},"pull_request":{"url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267","id":54623041,"html_url":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267","diff_url":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267.diff","patch_url":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267.patch","issue_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/1267","number":1267,"state":"open","locked":false,"title":"genpoi UUID improvements","user":{"login":"eminence","id":402454,"avatar_url":"https://avatars.githubusercontent.com/u/402454?v=3","gravatar_id":"","url":"https://api.github.com/users/eminence","html_url":"https://github.com/eminence","followers_url":"https://api.github.com/users/eminence/followers","following_url":"https://api.github.com/users/eminence/following{/other_user}","gists_url":"https://api.github.com/users/eminence/gists{/gist_id}","starred_url":"https://api.github.com/users/eminence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eminence/subscriptions","organizations_url":"https://api.github.com/users/eminence/orgs","repos_url":"https://api.github.com/users/eminence/repos","events_url":"https://api.github.com/users/eminence/events{/privacy}","received_events_url":"https://api.github.com/users/eminence/received_events","type":"User","site_admin":false},"body":"* When reading the cache, catch some errors on load, instead of crashing\r\n* When writing to cache, write to tmp file, then move it into place.\r\n  This should be more robust if a ctrl+c is recieved while writing the\r\n  cache\r\n\r\nAddresses #1266 \r\n\r\ncc @ion1 @agrif \r\n\r\nI'll merge this in a few days, so let me know if you have any comments","created_at":"2015-12-27T20:01:31Z","updated_at":"2016-01-01T09:40:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"906595b1da4000df463dcbf6b1c565d897990d57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267/commits","review_comments_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267/comments","review_comment_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/1267/comments","statuses_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/statuses/270741eb8f229a9b95bdb37745f8310554f7701e","head":{"label":"overviewer:uuidcache","ref":"uuidcache","sha":"270741eb8f229a9b95bdb37745f8310554f7701e","user":{"login":"overviewer","id":1048440,"avatar_url":"https://avatars.githubusercontent.com/u/1048440?v=3","gravatar_id":"","url":"https://api.github.com/users/overviewer","html_url":"https://github.com/overviewer","followers_url":"https://api.github.com/users/overviewer/followers","following_url":"https://api.github.com/users/overviewer/following{/other_user}","gists_url":"https://api.github.com/users/overviewer/gists{/gist_id}","starred_url":"https://api.github.com/users/overviewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overviewer/subscriptions","organizations_url":"https://api.github.com/users/overviewer/orgs","repos_url":"https://api.github.com/users/overviewer/repos","events_url":"https://api.github.com/users/overviewer/events{/privacy}","received_events_url":"https://api.github.com/users/overviewer/received_events","type":"Organization","site_admin":false},"repo":{"id":869050,"name":"Minecraft-Overviewer","full_name":"overviewer/Minecraft-Overviewer","owner":{"login":"overviewer","id":1048440,"avatar_url":"https://avatars.githubusercontent.com/u/1048440?v=3","gravatar_id":"","url":"https://api.github.com/users/overviewer","html_url":"https://github.com/overviewer","followers_url":"https://api.github.com/users/overviewer/followers","following_url":"https://api.github.com/users/overviewer/following{/other_user}","gists_url":"https://api.github.com/users/overviewer/gists{/gist_id}","starred_url":"https://api.github.com/users/overviewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overviewer/subscriptions","organizations_url":"https://api.github.com/users/overviewer/orgs","repos_url":"https://api.github.com/users/overviewer/repos","events_url":"https://api.github.com/users/overviewer/events{/privacy}","received_events_url":"https://api.github.com/users/overviewer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/overviewer/Minecraft-Overviewer","description":"Render high-resolution maps of a Minecraft world with a Google Maps powered interface","fork":false,"url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer","forks_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/forks","keys_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/teams","hooks_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/hooks","issue_events_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/events{/number}","events_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/events","assignees_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/assignees{/user}","branches_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/branches{/branch}","tags_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/tags","blobs_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/refs{/sha}","trees_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/statuses/{sha}","languages_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/languages","stargazers_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/stargazers","contributors_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/contributors","subscribers_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/subscribers","subscription_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/subscription","commits_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/commits{/sha}","git_commits_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/commits{/sha}","comments_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/comments{/number}","issue_comment_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/comments{/number}","contents_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/contents/{+path}","compare_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/merges","archive_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/downloads","issues_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues{/number}","pulls_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls{/number}","milestones_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/milestones{/number}","notifications_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/labels{/name}","releases_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/releases{/id}","created_at":"2010-08-28T21:44:16Z","updated_at":"2016-01-01T04:02:01Z","pushed_at":"2015-12-27T20:09:51Z","git_url":"git://github.com/overviewer/Minecraft-Overviewer.git","ssh_url":"git@github.com:overviewer/Minecraft-Overviewer.git","clone_url":"https://github.com/overviewer/Minecraft-Overviewer.git","svn_url":"https://github.com/overviewer/Minecraft-Overviewer","homepage":"http://overviewer.org/","size":9234,"stargazers_count":1275,"watchers_count":1275,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":144,"forks":231,"open_issues":144,"watchers":1275,"default_branch":"master"}},"base":{"label":"overviewer:master","ref":"master","sha":"0ba0c60ed210d3f256cbd369818cbbc5a6afbc57","user":{"login":"overviewer","id":1048440,"avatar_url":"https://avatars.githubusercontent.com/u/1048440?v=3","gravatar_id":"","url":"https://api.github.com/users/overviewer","html_url":"https://github.com/overviewer","followers_url":"https://api.github.com/users/overviewer/followers","following_url":"https://api.github.com/users/overviewer/following{/other_user}","gists_url":"https://api.github.com/users/overviewer/gists{/gist_id}","starred_url":"https://api.github.com/users/overviewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overviewer/subscriptions","organizations_url":"https://api.github.com/users/overviewer/orgs","repos_url":"https://api.github.com/users/overviewer/repos","events_url":"https://api.github.com/users/overviewer/events{/privacy}","received_events_url":"https://api.github.com/users/overviewer/received_events","type":"Organization","site_admin":false},"repo":{"id":869050,"name":"Minecraft-Overviewer","full_name":"overviewer/Minecraft-Overviewer","owner":{"login":"overviewer","id":1048440,"avatar_url":"https://avatars.githubusercontent.com/u/1048440?v=3","gravatar_id":"","url":"https://api.github.com/users/overviewer","html_url":"https://github.com/overviewer","followers_url":"https://api.github.com/users/overviewer/followers","following_url":"https://api.github.com/users/overviewer/following{/other_user}","gists_url":"https://api.github.com/users/overviewer/gists{/gist_id}","starred_url":"https://api.github.com/users/overviewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overviewer/subscriptions","organizations_url":"https://api.github.com/users/overviewer/orgs","repos_url":"https://api.github.com/users/overviewer/repos","events_url":"https://api.github.com/users/overviewer/events{/privacy}","received_events_url":"https://api.github.com/users/overviewer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/overviewer/Minecraft-Overviewer","description":"Render high-resolution maps of a Minecraft world with a Google Maps powered interface","fork":false,"url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer","forks_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/forks","keys_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/teams","hooks_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/hooks","issue_events_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/events{/number}","events_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/events","assignees_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/assignees{/user}","branches_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/branches{/branch}","tags_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/tags","blobs_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/refs{/sha}","trees_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/statuses/{sha}","languages_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/languages","stargazers_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/stargazers","contributors_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/contributors","subscribers_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/subscribers","subscription_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/subscription","commits_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/commits{/sha}","git_commits_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/git/commits{/sha}","comments_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/comments{/number}","issue_comment_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/comments{/number}","contents_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/contents/{+path}","compare_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/merges","archive_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/downloads","issues_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues{/number}","pulls_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls{/number}","milestones_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/milestones{/number}","notifications_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/labels{/name}","releases_url":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/releases{/id}","created_at":"2010-08-28T21:44:16Z","updated_at":"2016-01-01T04:02:01Z","pushed_at":"2015-12-27T20:09:51Z","git_url":"git://github.com/overviewer/Minecraft-Overviewer.git","ssh_url":"git@github.com:overviewer/Minecraft-Overviewer.git","clone_url":"https://github.com/overviewer/Minecraft-Overviewer.git","svn_url":"https://github.com/overviewer/Minecraft-Overviewer","homepage":"http://overviewer.org/","size":9234,"stargazers_count":1275,"watchers_count":1275,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":144,"forks":231,"open_issues":144,"watchers":1275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267"},"html":{"href":"https://github.com/overviewer/Minecraft-Overviewer/pull/1267"},"issue":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/1267"},"comments":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/issues/1267/comments"},"review_comments":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267/comments"},"review_comment":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/pulls/1267/commits"},"statuses":{"href":"https://api.github.com/repos/overviewer/Minecraft-Overviewer/statuses/270741eb8f229a9b95bdb37745f8310554f7701e"}}}}