Skip to content

Commit

Permalink
Fix Unknown parameter in input: "onerror"
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed Dec 7, 2024
1 parent b54e676 commit 9d2d73c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyathena/filesystem/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,12 @@ def touch(self, path: str, truncate: bool = True, **kwargs) -> Dict[str, Any]:
self.invalidate_cache(path)
return object_.to_dict()

def cp_file(self, path1: str, path2: str, **kwargs):
def cp_file(self, path1: str, path2: str, recursive=False, maxdepth=None, on_error=None, **kwargs):
# TODO: Delete the value that seems to be a typo, onerror=false.
# https://github.com/fsspec/filesystem_spec/commit/346a589fef9308550ffa3d0d510f2db67281bb05
# https://github.com/fsspec/filesystem_spec/blob/2024.10.0/fsspec/spec.py#L1185
# https://github.com/fsspec/filesystem_spec/blob/2024.10.0/fsspec/spec.py#L1077
kwargs.pop("onerror")
bucket1, key1, version_id1 = self.parse_path(path1)
bucket2, key2, version_id2 = self.parse_path(path2)
if version_id2:
Expand Down

0 comments on commit 9d2d73c

Please sign in to comment.