{"action":"created","comment":{"url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/comments/93678033","pull_request_review_id":14211219,"id":93678033,"diff_hunk":"@@ -2105,7 +2105,16 @@ def read_config(options, args, arglist, parser):\n \n     parent = tail = args and os.path.abspath(os.path.commonprefix(args))\n     while tail:\n-        if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):\n+        try:\n+            files_read = config.read(os.path.join(parent, fn)\n+                                     for fn in PROJECT_CONFIG)\n+        except configparser.ParsingError:\n+            if options.verbose:\n+                print('failed to read local configuration files due to a '\n+                      'parsing error')","path":"pycodestyle.py","position":33,"original_position":33,"commit_id":"8849c05ffe7dd2bd19d40bf45544ac43b77896fc","original_commit_id":"8849c05ffe7dd2bd19d40bf45544ac43b77896fc","user":{"login":"ambv","id":55281,"avatar_url":"https://avatars.githubusercontent.com/u/55281?v=3","gravatar_id":"","url":"https://api.github.com/users/ambv","html_url":"https://github.com/ambv","followers_url":"https://api.github.com/users/ambv/followers","following_url":"https://api.github.com/users/ambv/following{/other_user}","gists_url":"https://api.github.com/users/ambv/gists{/gist_id}","starred_url":"https://api.github.com/users/ambv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambv/subscriptions","organizations_url":"https://api.github.com/users/ambv/orgs","repos_url":"https://api.github.com/users/ambv/repos","events_url":"https://api.github.com/users/ambv/events{/privacy}","received_events_url":"https://api.github.com/users/ambv/received_events","type":"User","site_admin":false},"body":"Do you have an example of an non-useful error message? Any ideas how the error message could be improved?","created_at":"2016-12-22T18:57:14Z","updated_at":"2016-12-22T18:57:14Z","html_url":"https://github.com/PyCQA/pycodestyle/pull/547#discussion_r93678033","pull_request_url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547","_links":{"self":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/comments/93678033"},"html":{"href":"https://github.com/PyCQA/pycodestyle/pull/547#discussion_r93678033"},"pull_request":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547"}}},"pull_request":{"url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547","id":74158482,"html_url":"https://github.com/PyCQA/pycodestyle/pull/547","diff_url":"https://github.com/PyCQA/pycodestyle/pull/547.diff","patch_url":"https://github.com/PyCQA/pycodestyle/pull/547.patch","issue_url":"https://api.github.com/repos/PyCQA/pycodestyle/issues/547","number":547,"state":"open","locked":false,"title":"Handle ParsingErrors from configparser","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"body":"In the event that the config file is mangled, we should should be able\nto recover from that without issue.\n\nCloses gh-506\n","created_at":"2016-06-16T21:50:24Z","updated_at":"2016-12-22T18:57:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8692d0986015f9b800c0895148dee6c572993adf","assignee":{"login":"IanLee1521","id":828452,"avatar_url":"https://avatars.githubusercontent.com/u/828452?v=3","gravatar_id":"","url":"https://api.github.com/users/IanLee1521","html_url":"https://github.com/IanLee1521","followers_url":"https://api.github.com/users/IanLee1521/followers","following_url":"https://api.github.com/users/IanLee1521/following{/other_user}","gists_url":"https://api.github.com/users/IanLee1521/gists{/gist_id}","starred_url":"https://api.github.com/users/IanLee1521/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanLee1521/subscriptions","organizations_url":"https://api.github.com/users/IanLee1521/orgs","repos_url":"https://api.github.com/users/IanLee1521/repos","events_url":"https://api.github.com/users/IanLee1521/events{/privacy}","received_events_url":"https://api.github.com/users/IanLee1521/received_events","type":"User","site_admin":false},"assignees":[{"login":"IanLee1521","id":828452,"avatar_url":"https://avatars.githubusercontent.com/u/828452?v=3","gravatar_id":"","url":"https://api.github.com/users/IanLee1521","html_url":"https://github.com/IanLee1521","followers_url":"https://api.github.com/users/IanLee1521/followers","following_url":"https://api.github.com/users/IanLee1521/following{/other_user}","gists_url":"https://api.github.com/users/IanLee1521/gists{/gist_id}","starred_url":"https://api.github.com/users/IanLee1521/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanLee1521/subscriptions","organizations_url":"https://api.github.com/users/IanLee1521/orgs","repos_url":"https://api.github.com/users/IanLee1521/repos","events_url":"https://api.github.com/users/IanLee1521/events{/privacy}","received_events_url":"https://api.github.com/users/IanLee1521/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547/commits","review_comments_url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547/comments","review_comment_url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyCQA/pycodestyle/issues/547/comments","statuses_url":"https://api.github.com/repos/PyCQA/pycodestyle/statuses/8849c05ffe7dd2bd19d40bf45544ac43b77896fc","head":{"label":"sigmavirus24:bug/506","ref":"bug/506","sha":"8849c05ffe7dd2bd19d40bf45544ac43b77896fc","user":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"repo":{"id":5703209,"name":"pep8","full_name":"sigmavirus24/pep8","owner":{"login":"sigmavirus24","id":240830,"avatar_url":"https://avatars.githubusercontent.com/u/240830?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmavirus24","html_url":"https://github.com/sigmavirus24","followers_url":"https://api.github.com/users/sigmavirus24/followers","following_url":"https://api.github.com/users/sigmavirus24/following{/other_user}","gists_url":"https://api.github.com/users/sigmavirus24/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmavirus24/subscriptions","organizations_url":"https://api.github.com/users/sigmavirus24/orgs","repos_url":"https://api.github.com/users/sigmavirus24/repos","events_url":"https://api.github.com/users/sigmavirus24/events{/privacy}","received_events_url":"https://api.github.com/users/sigmavirus24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sigmavirus24/pep8","description":"Simple Python style checker in one Python file","fork":true,"url":"https://api.github.com/repos/sigmavirus24/pep8","forks_url":"https://api.github.com/repos/sigmavirus24/pep8/forks","keys_url":"https://api.github.com/repos/sigmavirus24/pep8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sigmavirus24/pep8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sigmavirus24/pep8/teams","hooks_url":"https://api.github.com/repos/sigmavirus24/pep8/hooks","issue_events_url":"https://api.github.com/repos/sigmavirus24/pep8/issues/events{/number}","events_url":"https://api.github.com/repos/sigmavirus24/pep8/events","assignees_url":"https://api.github.com/repos/sigmavirus24/pep8/assignees{/user}","branches_url":"https://api.github.com/repos/sigmavirus24/pep8/branches{/branch}","tags_url":"https://api.github.com/repos/sigmavirus24/pep8/tags","blobs_url":"https://api.github.com/repos/sigmavirus24/pep8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sigmavirus24/pep8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sigmavirus24/pep8/git/refs{/sha}","trees_url":"https://api.github.com/repos/sigmavirus24/pep8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sigmavirus24/pep8/statuses/{sha}","languages_url":"https://api.github.com/repos/sigmavirus24/pep8/languages","stargazers_url":"https://api.github.com/repos/sigmavirus24/pep8/stargazers","contributors_url":"https://api.github.com/repos/sigmavirus24/pep8/contributors","subscribers_url":"https://api.github.com/repos/sigmavirus24/pep8/subscribers","subscription_url":"https://api.github.com/repos/sigmavirus24/pep8/subscription","commits_url":"https://api.github.com/repos/sigmavirus24/pep8/commits{/sha}","git_commits_url":"https://api.github.com/repos/sigmavirus24/pep8/git/commits{/sha}","comments_url":"https://api.github.com/repos/sigmavirus24/pep8/comments{/number}","issue_comment_url":"https://api.github.com/repos/sigmavirus24/pep8/issues/comments{/number}","contents_url":"https://api.github.com/repos/sigmavirus24/pep8/contents/{+path}","compare_url":"https://api.github.com/repos/sigmavirus24/pep8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sigmavirus24/pep8/merges","archive_url":"https://api.github.com/repos/sigmavirus24/pep8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sigmavirus24/pep8/downloads","issues_url":"https://api.github.com/repos/sigmavirus24/pep8/issues{/number}","pulls_url":"https://api.github.com/repos/sigmavirus24/pep8/pulls{/number}","milestones_url":"https://api.github.com/repos/sigmavirus24/pep8/milestones{/number}","notifications_url":"https://api.github.com/repos/sigmavirus24/pep8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sigmavirus24/pep8/labels{/name}","releases_url":"https://api.github.com/repos/sigmavirus24/pep8/releases{/id}","deployments_url":"https://api.github.com/repos/sigmavirus24/pep8/deployments","created_at":"2012-09-06T14:13:14Z","updated_at":"2014-09-30T09:59:20Z","pushed_at":"2016-07-25T11:15:38Z","git_url":"git://github.com/sigmavirus24/pep8.git","ssh_url":"git@github.com:sigmavirus24/pep8.git","clone_url":"https://github.com/sigmavirus24/pep8.git","svn_url":"https://github.com/sigmavirus24/pep8","homepage":"","size":1318,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"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":1,"default_branch":"master"}},"base":{"label":"PyCQA:master","ref":"master","sha":"f8af83d3cce2dace3d780c88ce0c580e30fc1dbd","user":{"login":"PyCQA","id":8749848,"avatar_url":"https://avatars.githubusercontent.com/u/8749848?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCQA","html_url":"https://github.com/PyCQA","followers_url":"https://api.github.com/users/PyCQA/followers","following_url":"https://api.github.com/users/PyCQA/following{/other_user}","gists_url":"https://api.github.com/users/PyCQA/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCQA/subscriptions","organizations_url":"https://api.github.com/users/PyCQA/orgs","repos_url":"https://api.github.com/users/PyCQA/repos","events_url":"https://api.github.com/users/PyCQA/events{/privacy}","received_events_url":"https://api.github.com/users/PyCQA/received_events","type":"Organization","site_admin":false},"repo":{"id":324077,"name":"pycodestyle","full_name":"PyCQA/pycodestyle","owner":{"login":"PyCQA","id":8749848,"avatar_url":"https://avatars.githubusercontent.com/u/8749848?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCQA","html_url":"https://github.com/PyCQA","followers_url":"https://api.github.com/users/PyCQA/followers","following_url":"https://api.github.com/users/PyCQA/following{/other_user}","gists_url":"https://api.github.com/users/PyCQA/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCQA/subscriptions","organizations_url":"https://api.github.com/users/PyCQA/orgs","repos_url":"https://api.github.com/users/PyCQA/repos","events_url":"https://api.github.com/users/PyCQA/events{/privacy}","received_events_url":"https://api.github.com/users/PyCQA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyCQA/pycodestyle","description":"Simple Python style checker in one Python file","fork":false,"url":"https://api.github.com/repos/PyCQA/pycodestyle","forks_url":"https://api.github.com/repos/PyCQA/pycodestyle/forks","keys_url":"https://api.github.com/repos/PyCQA/pycodestyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCQA/pycodestyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCQA/pycodestyle/teams","hooks_url":"https://api.github.com/repos/PyCQA/pycodestyle/hooks","issue_events_url":"https://api.github.com/repos/PyCQA/pycodestyle/issues/events{/number}","events_url":"https://api.github.com/repos/PyCQA/pycodestyle/events","assignees_url":"https://api.github.com/repos/PyCQA/pycodestyle/assignees{/user}","branches_url":"https://api.github.com/repos/PyCQA/pycodestyle/branches{/branch}","tags_url":"https://api.github.com/repos/PyCQA/pycodestyle/tags","blobs_url":"https://api.github.com/repos/PyCQA/pycodestyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCQA/pycodestyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCQA/pycodestyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCQA/pycodestyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCQA/pycodestyle/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCQA/pycodestyle/languages","stargazers_url":"https://api.github.com/repos/PyCQA/pycodestyle/stargazers","contributors_url":"https://api.github.com/repos/PyCQA/pycodestyle/contributors","subscribers_url":"https://api.github.com/repos/PyCQA/pycodestyle/subscribers","subscription_url":"https://api.github.com/repos/PyCQA/pycodestyle/subscription","commits_url":"https://api.github.com/repos/PyCQA/pycodestyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCQA/pycodestyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCQA/pycodestyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCQA/pycodestyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCQA/pycodestyle/contents/{+path}","compare_url":"https://api.github.com/repos/PyCQA/pycodestyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCQA/pycodestyle/merges","archive_url":"https://api.github.com/repos/PyCQA/pycodestyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCQA/pycodestyle/downloads","issues_url":"https://api.github.com/repos/PyCQA/pycodestyle/issues{/number}","pulls_url":"https://api.github.com/repos/PyCQA/pycodestyle/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCQA/pycodestyle/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCQA/pycodestyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCQA/pycodestyle/labels{/name}","releases_url":"https://api.github.com/repos/PyCQA/pycodestyle/releases{/id}","deployments_url":"https://api.github.com/repos/PyCQA/pycodestyle/deployments","created_at":"2009-10-02T00:43:37Z","updated_at":"2016-12-22T09:42:54Z","pushed_at":"2016-12-19T22:46:21Z","git_url":"git://github.com/PyCQA/pycodestyle.git","ssh_url":"git@github.com:PyCQA/pycodestyle.git","clone_url":"https://github.com/PyCQA/pycodestyle.git","svn_url":"https://github.com/PyCQA/pycodestyle","homepage":"http://pycodestyle.pycqa.org","size":2390,"stargazers_count":2010,"watchers_count":2010,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":421,"mirror_url":null,"open_issues_count":89,"forks":421,"open_issues":89,"watchers":2010,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547"},"html":{"href":"https://github.com/PyCQA/pycodestyle/pull/547"},"issue":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/issues/547"},"comments":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/issues/547/comments"},"review_comments":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547/comments"},"review_comment":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/pulls/547/commits"},"statuses":{"href":"https://api.github.com/repos/PyCQA/pycodestyle/statuses/8849c05ffe7dd2bd19d40bf45544ac43b77896fc"}}}}
{"actor":{"display_login":"ambv"}}