diff --git a/src/webdav4/client.py b/src/webdav4/client.py index bb430cd..0bec36d 100644 --- a/src/webdav4/client.py +++ b/src/webdav4/client.py @@ -578,11 +578,13 @@ def open( raise IsACollectionError(path, "Cannot open a collection") assert mode in {"r", "rt", "rb"} - with IterStream( + call = wrap_fn(IterStream, self, self.join_url(path), chunk_size=chunk_size or self.chunk_size, - ) as buffer: + ) + + with self.with_retry(call) as buffer: buff = cast(BinaryIO, buffer) if mode == "rb":