{"action":"created","comment":{"url":"https://api.github.com/repos/dask/s3fs/pulls/comments/56346493","id":56346493,"diff_hunk":"@@ -142,7 +169,10 @@ def _ls(self, path, refresh=False):\n                     f['Size'] = 0\n                     del f['Name']\n             else:\n-                files = self.s3.list_objects(Bucket=bucket).get('Contents', [])\n+                try:\n+                    files = self.s3.list_objects(Bucket=bucket).get('Contents', [])\n+                except ClientError:\n+                    files = []","path":"s3fs/core.py","position":98,"original_position":98,"commit_id":"991f8404edd0649d6190b7fae42b26ba7cd396a7","original_commit_id":"bc82422bebb6700d3e2c474cdfbc8732b948d424","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"body":"Should we raise a `FileNotFound` error if the user doesn't provide a nice location?","created_at":"2016-03-16T14:49:32Z","updated_at":"2016-03-16T14:49:32Z","html_url":"https://github.com/dask/s3fs/pull/2#discussion_r56346493","pull_request_url":"https://api.github.com/repos/dask/s3fs/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/dask/s3fs/pulls/comments/56346493"},"html":{"href":"https://github.com/dask/s3fs/pull/2#discussion_r56346493"},"pull_request":{"href":"https://api.github.com/repos/dask/s3fs/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dask/s3fs/pulls/2","id":63065506,"html_url":"https://github.com/dask/s3fs/pull/2","diff_url":"https://github.com/dask/s3fs/pull/2.diff","patch_url":"https://github.com/dask/s3fs/pull/2.patch","issue_url":"https://api.github.com/repos/dask/s3fs/issues/2","number":2,"state":"open","locked":false,"title":"Writing","user":{"login":"martindurant","id":6042212,"avatar_url":"https://avatars.githubusercontent.com/u/6042212?v=3","gravatar_id":"","url":"https://api.github.com/users/martindurant","html_url":"https://github.com/martindurant","followers_url":"https://api.github.com/users/martindurant/followers","following_url":"https://api.github.com/users/martindurant/following{/other_user}","gists_url":"https://api.github.com/users/martindurant/gists{/gist_id}","starred_url":"https://api.github.com/users/martindurant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindurant/subscriptions","organizations_url":"https://api.github.com/users/martindurant/orgs","repos_url":"https://api.github.com/users/martindurant/repos","events_url":"https://api.github.com/users/martindurant/events{/privacy}","received_events_url":"https://api.github.com/users/martindurant/received_events","type":"User","site_admin":false},"body":"Uploads are multi-part, with in internal IO buffer, which is flushed to the server when it grows over 5MB or the given block_size.\r\n\r\nQuestion: is there ever a circumstance with a need to call `abort_multipart_upload`?","created_at":"2016-03-16T13:39:44Z","updated_at":"2016-03-16T14:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b71d74982455d989ef9df19f4543979c9f972cc6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dask/s3fs/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dask/s3fs/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dask/s3fs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dask/s3fs/issues/2/comments","statuses_url":"https://api.github.com/repos/dask/s3fs/statuses/991f8404edd0649d6190b7fae42b26ba7cd396a7","head":{"label":"dask:writing","ref":"writing","sha":"991f8404edd0649d6190b7fae42b26ba7cd396a7","user":{"login":"dask","id":17131925,"avatar_url":"https://avatars.githubusercontent.com/u/17131925?v=3","gravatar_id":"","url":"https://api.github.com/users/dask","html_url":"https://github.com/dask","followers_url":"https://api.github.com/users/dask/followers","following_url":"https://api.github.com/users/dask/following{/other_user}","gists_url":"https://api.github.com/users/dask/gists{/gist_id}","starred_url":"https://api.github.com/users/dask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dask/subscriptions","organizations_url":"https://api.github.com/users/dask/orgs","repos_url":"https://api.github.com/users/dask/repos","events_url":"https://api.github.com/users/dask/events{/privacy}","received_events_url":"https://api.github.com/users/dask/received_events","type":"Organization","site_admin":false},"repo":{"id":53987953,"name":"s3fs","full_name":"dask/s3fs","owner":{"login":"dask","id":17131925,"avatar_url":"https://avatars.githubusercontent.com/u/17131925?v=3","gravatar_id":"","url":"https://api.github.com/users/dask","html_url":"https://github.com/dask","followers_url":"https://api.github.com/users/dask/followers","following_url":"https://api.github.com/users/dask/following{/other_user}","gists_url":"https://api.github.com/users/dask/gists{/gist_id}","starred_url":"https://api.github.com/users/dask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dask/subscriptions","organizations_url":"https://api.github.com/users/dask/orgs","repos_url":"https://api.github.com/users/dask/repos","events_url":"https://api.github.com/users/dask/events{/privacy}","received_events_url":"https://api.github.com/users/dask/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dask/s3fs","description":"S3 Filesystem ","fork":false,"url":"https://api.github.com/repos/dask/s3fs","forks_url":"https://api.github.com/repos/dask/s3fs/forks","keys_url":"https://api.github.com/repos/dask/s3fs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dask/s3fs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dask/s3fs/teams","hooks_url":"https://api.github.com/repos/dask/s3fs/hooks","issue_events_url":"https://api.github.com/repos/dask/s3fs/issues/events{/number}","events_url":"https://api.github.com/repos/dask/s3fs/events","assignees_url":"https://api.github.com/repos/dask/s3fs/assignees{/user}","branches_url":"https://api.github.com/repos/dask/s3fs/branches{/branch}","tags_url":"https://api.github.com/repos/dask/s3fs/tags","blobs_url":"https://api.github.com/repos/dask/s3fs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dask/s3fs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dask/s3fs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dask/s3fs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dask/s3fs/statuses/{sha}","languages_url":"https://api.github.com/repos/dask/s3fs/languages","stargazers_url":"https://api.github.com/repos/dask/s3fs/stargazers","contributors_url":"https://api.github.com/repos/dask/s3fs/contributors","subscribers_url":"https://api.github.com/repos/dask/s3fs/subscribers","subscription_url":"https://api.github.com/repos/dask/s3fs/subscription","commits_url":"https://api.github.com/repos/dask/s3fs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dask/s3fs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dask/s3fs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dask/s3fs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dask/s3fs/contents/{+path}","compare_url":"https://api.github.com/repos/dask/s3fs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dask/s3fs/merges","archive_url":"https://api.github.com/repos/dask/s3fs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dask/s3fs/downloads","issues_url":"https://api.github.com/repos/dask/s3fs/issues{/number}","pulls_url":"https://api.github.com/repos/dask/s3fs/pulls{/number}","milestones_url":"https://api.github.com/repos/dask/s3fs/milestones{/number}","notifications_url":"https://api.github.com/repos/dask/s3fs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dask/s3fs/labels{/name}","releases_url":"https://api.github.com/repos/dask/s3fs/releases{/id}","deployments_url":"https://api.github.com/repos/dask/s3fs/deployments","created_at":"2016-03-16T00:19:32Z","updated_at":"2016-03-16T00:20:30Z","pushed_at":"2016-03-16T14:46:21Z","git_url":"git://github.com/dask/s3fs.git","ssh_url":"git@github.com:dask/s3fs.git","clone_url":"https://github.com/dask/s3fs.git","svn_url":"https://github.com/dask/s3fs","homepage":null,"size":35,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dask:master","ref":"master","sha":"fe9651f66c854c616994ba9462dc1e56b92fc661","user":{"login":"dask","id":17131925,"avatar_url":"https://avatars.githubusercontent.com/u/17131925?v=3","gravatar_id":"","url":"https://api.github.com/users/dask","html_url":"https://github.com/dask","followers_url":"https://api.github.com/users/dask/followers","following_url":"https://api.github.com/users/dask/following{/other_user}","gists_url":"https://api.github.com/users/dask/gists{/gist_id}","starred_url":"https://api.github.com/users/dask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dask/subscriptions","organizations_url":"https://api.github.com/users/dask/orgs","repos_url":"https://api.github.com/users/dask/repos","events_url":"https://api.github.com/users/dask/events{/privacy}","received_events_url":"https://api.github.com/users/dask/received_events","type":"Organization","site_admin":false},"repo":{"id":53987953,"name":"s3fs","full_name":"dask/s3fs","owner":{"login":"dask","id":17131925,"avatar_url":"https://avatars.githubusercontent.com/u/17131925?v=3","gravatar_id":"","url":"https://api.github.com/users/dask","html_url":"https://github.com/dask","followers_url":"https://api.github.com/users/dask/followers","following_url":"https://api.github.com/users/dask/following{/other_user}","gists_url":"https://api.github.com/users/dask/gists{/gist_id}","starred_url":"https://api.github.com/users/dask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dask/subscriptions","organizations_url":"https://api.github.com/users/dask/orgs","repos_url":"https://api.github.com/users/dask/repos","events_url":"https://api.github.com/users/dask/events{/privacy}","received_events_url":"https://api.github.com/users/dask/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dask/s3fs","description":"S3 Filesystem ","fork":false,"url":"https://api.github.com/repos/dask/s3fs","forks_url":"https://api.github.com/repos/dask/s3fs/forks","keys_url":"https://api.github.com/repos/dask/s3fs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dask/s3fs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dask/s3fs/teams","hooks_url":"https://api.github.com/repos/dask/s3fs/hooks","issue_events_url":"https://api.github.com/repos/dask/s3fs/issues/events{/number}","events_url":"https://api.github.com/repos/dask/s3fs/events","assignees_url":"https://api.github.com/repos/dask/s3fs/assignees{/user}","branches_url":"https://api.github.com/repos/dask/s3fs/branches{/branch}","tags_url":"https://api.github.com/repos/dask/s3fs/tags","blobs_url":"https://api.github.com/repos/dask/s3fs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dask/s3fs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dask/s3fs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dask/s3fs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dask/s3fs/statuses/{sha}","languages_url":"https://api.github.com/repos/dask/s3fs/languages","stargazers_url":"https://api.github.com/repos/dask/s3fs/stargazers","contributors_url":"https://api.github.com/repos/dask/s3fs/contributors","subscribers_url":"https://api.github.com/repos/dask/s3fs/subscribers","subscription_url":"https://api.github.com/repos/dask/s3fs/subscription","commits_url":"https://api.github.com/repos/dask/s3fs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dask/s3fs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dask/s3fs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dask/s3fs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dask/s3fs/contents/{+path}","compare_url":"https://api.github.com/repos/dask/s3fs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dask/s3fs/merges","archive_url":"https://api.github.com/repos/dask/s3fs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dask/s3fs/downloads","issues_url":"https://api.github.com/repos/dask/s3fs/issues{/number}","pulls_url":"https://api.github.com/repos/dask/s3fs/pulls{/number}","milestones_url":"https://api.github.com/repos/dask/s3fs/milestones{/number}","notifications_url":"https://api.github.com/repos/dask/s3fs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dask/s3fs/labels{/name}","releases_url":"https://api.github.com/repos/dask/s3fs/releases{/id}","deployments_url":"https://api.github.com/repos/dask/s3fs/deployments","created_at":"2016-03-16T00:19:32Z","updated_at":"2016-03-16T00:20:30Z","pushed_at":"2016-03-16T14:46:21Z","git_url":"git://github.com/dask/s3fs.git","ssh_url":"git@github.com:dask/s3fs.git","clone_url":"https://github.com/dask/s3fs.git","svn_url":"https://github.com/dask/s3fs","homepage":null,"size":35,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dask/s3fs/pulls/2"},"html":{"href":"https://github.com/dask/s3fs/pull/2"},"issue":{"href":"https://api.github.com/repos/dask/s3fs/issues/2"},"comments":{"href":"https://api.github.com/repos/dask/s3fs/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dask/s3fs/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dask/s3fs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dask/s3fs/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dask/s3fs/statuses/991f8404edd0649d6190b7fae42b26ba7cd396a7"}}}}