{"action":"opened","number":29,"pull_request":{"url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29","id":31852671,"html_url":"https://github.com/gem/oq-svir-qgis/pull/29","diff_url":"https://github.com/gem/oq-svir-qgis/pull/29.diff","patch_url":"https://github.com/gem/oq-svir-qgis/pull/29.patch","issue_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/29","number":29,"state":"open","locked":false,"title":"Fix corner case in which the project definition is defined in the qgis project, but it's empty","user":{"login":"ptormene","id":350930,"avatar_url":"https://avatars.githubusercontent.com/u/350930?v=3","gravatar_id":"","url":"https://api.github.com/users/ptormene","html_url":"https://github.com/ptormene","followers_url":"https://api.github.com/users/ptormene/followers","following_url":"https://api.github.com/users/ptormene/following{/other_user}","gists_url":"https://api.github.com/users/ptormene/gists{/gist_id}","starred_url":"https://api.github.com/users/ptormene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptormene/subscriptions","organizations_url":"https://api.github.com/users/ptormene/orgs","repos_url":"https://api.github.com/users/ptormene/repos","events_url":"https://api.github.com/users/ptormene/events{/privacy}","received_events_url":"https://api.github.com/users/ptormene/received_events","type":"User","site_admin":false},"body":"This is a one-line fix, but important. It solves a very annoying issue that might occur when the qgis project contains an empty project definition. In that case, the plugin attempts to parse the project definition's json, which is an empty string, so it raises an exception.\r\nI added a check to avoid that.","created_at":"2015-03-24T17:54:18Z","updated_at":"2015-03-24T17:54:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29/commits","review_comments_url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29/comments","review_comment_url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/29/comments","statuses_url":"https://api.github.com/repos/gem/oq-svir-qgis/statuses/62c2c3cd7c32975525421453775db7232d165c5f","head":{"label":"gem:fix-sync-empty-proj-def","ref":"fix-sync-empty-proj-def","sha":"62c2c3cd7c32975525421453775db7232d165c5f","user":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"repo":{"id":29854750,"name":"oq-svir-qgis","full_name":"gem/oq-svir-qgis","owner":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gem/oq-svir-qgis","description":"QGIS plugin for social vulnerability and integrated risk","fork":false,"url":"https://api.github.com/repos/gem/oq-svir-qgis","forks_url":"https://api.github.com/repos/gem/oq-svir-qgis/forks","keys_url":"https://api.github.com/repos/gem/oq-svir-qgis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gem/oq-svir-qgis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gem/oq-svir-qgis/teams","hooks_url":"https://api.github.com/repos/gem/oq-svir-qgis/hooks","issue_events_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/events{/number}","events_url":"https://api.github.com/repos/gem/oq-svir-qgis/events","assignees_url":"https://api.github.com/repos/gem/oq-svir-qgis/assignees{/user}","branches_url":"https://api.github.com/repos/gem/oq-svir-qgis/branches{/branch}","tags_url":"https://api.github.com/repos/gem/oq-svir-qgis/tags","blobs_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/refs{/sha}","trees_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gem/oq-svir-qgis/statuses/{sha}","languages_url":"https://api.github.com/repos/gem/oq-svir-qgis/languages","stargazers_url":"https://api.github.com/repos/gem/oq-svir-qgis/stargazers","contributors_url":"https://api.github.com/repos/gem/oq-svir-qgis/contributors","subscribers_url":"https://api.github.com/repos/gem/oq-svir-qgis/subscribers","subscription_url":"https://api.github.com/repos/gem/oq-svir-qgis/subscription","commits_url":"https://api.github.com/repos/gem/oq-svir-qgis/commits{/sha}","git_commits_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/commits{/sha}","comments_url":"https://api.github.com/repos/gem/oq-svir-qgis/comments{/number}","issue_comment_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/comments{/number}","contents_url":"https://api.github.com/repos/gem/oq-svir-qgis/contents/{+path}","compare_url":"https://api.github.com/repos/gem/oq-svir-qgis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gem/oq-svir-qgis/merges","archive_url":"https://api.github.com/repos/gem/oq-svir-qgis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gem/oq-svir-qgis/downloads","issues_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues{/number}","pulls_url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls{/number}","milestones_url":"https://api.github.com/repos/gem/oq-svir-qgis/milestones{/number}","notifications_url":"https://api.github.com/repos/gem/oq-svir-qgis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gem/oq-svir-qgis/labels{/name}","releases_url":"https://api.github.com/repos/gem/oq-svir-qgis/releases{/id}","created_at":"2015-01-26T09:47:44Z","updated_at":"2015-03-03T09:55:52Z","pushed_at":"2015-03-24T17:54:19Z","git_url":"git://github.com/gem/oq-svir-qgis.git","ssh_url":"git@github.com:gem/oq-svir-qgis.git","clone_url":"https://github.com/gem/oq-svir-qgis.git","svn_url":"https://github.com/gem/oq-svir-qgis","homepage":null,"size":6304,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"gem:master","ref":"master","sha":"48052826f407d156c21cfc91060f608803f9ad81","user":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"repo":{"id":29854750,"name":"oq-svir-qgis","full_name":"gem/oq-svir-qgis","owner":{"login":"gem","id":316546,"avatar_url":"https://avatars.githubusercontent.com/u/316546?v=3","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gem/oq-svir-qgis","description":"QGIS plugin for social vulnerability and integrated risk","fork":false,"url":"https://api.github.com/repos/gem/oq-svir-qgis","forks_url":"https://api.github.com/repos/gem/oq-svir-qgis/forks","keys_url":"https://api.github.com/repos/gem/oq-svir-qgis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gem/oq-svir-qgis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gem/oq-svir-qgis/teams","hooks_url":"https://api.github.com/repos/gem/oq-svir-qgis/hooks","issue_events_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/events{/number}","events_url":"https://api.github.com/repos/gem/oq-svir-qgis/events","assignees_url":"https://api.github.com/repos/gem/oq-svir-qgis/assignees{/user}","branches_url":"https://api.github.com/repos/gem/oq-svir-qgis/branches{/branch}","tags_url":"https://api.github.com/repos/gem/oq-svir-qgis/tags","blobs_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/refs{/sha}","trees_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gem/oq-svir-qgis/statuses/{sha}","languages_url":"https://api.github.com/repos/gem/oq-svir-qgis/languages","stargazers_url":"https://api.github.com/repos/gem/oq-svir-qgis/stargazers","contributors_url":"https://api.github.com/repos/gem/oq-svir-qgis/contributors","subscribers_url":"https://api.github.com/repos/gem/oq-svir-qgis/subscribers","subscription_url":"https://api.github.com/repos/gem/oq-svir-qgis/subscription","commits_url":"https://api.github.com/repos/gem/oq-svir-qgis/commits{/sha}","git_commits_url":"https://api.github.com/repos/gem/oq-svir-qgis/git/commits{/sha}","comments_url":"https://api.github.com/repos/gem/oq-svir-qgis/comments{/number}","issue_comment_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues/comments{/number}","contents_url":"https://api.github.com/repos/gem/oq-svir-qgis/contents/{+path}","compare_url":"https://api.github.com/repos/gem/oq-svir-qgis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gem/oq-svir-qgis/merges","archive_url":"https://api.github.com/repos/gem/oq-svir-qgis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gem/oq-svir-qgis/downloads","issues_url":"https://api.github.com/repos/gem/oq-svir-qgis/issues{/number}","pulls_url":"https://api.github.com/repos/gem/oq-svir-qgis/pulls{/number}","milestones_url":"https://api.github.com/repos/gem/oq-svir-qgis/milestones{/number}","notifications_url":"https://api.github.com/repos/gem/oq-svir-qgis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gem/oq-svir-qgis/labels{/name}","releases_url":"https://api.github.com/repos/gem/oq-svir-qgis/releases{/id}","created_at":"2015-01-26T09:47:44Z","updated_at":"2015-03-03T09:55:52Z","pushed_at":"2015-03-24T17:54:19Z","git_url":"git://github.com/gem/oq-svir-qgis.git","ssh_url":"git@github.com:gem/oq-svir-qgis.git","clone_url":"https://github.com/gem/oq-svir-qgis.git","svn_url":"https://github.com/gem/oq-svir-qgis","homepage":null,"size":6304,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29"},"html":{"href":"https://github.com/gem/oq-svir-qgis/pull/29"},"issue":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/issues/29"},"comments":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/gem/oq-svir-qgis/statuses/62c2c3cd7c32975525421453775db7232d165c5f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}