From d426d70e3d71d116c84b443326afd9776f2dee3b Mon Sep 17 00:00:00 2001 From: SergioSim Date: Fri, 17 Nov 2023 15:17:47 +0100 Subject: [PATCH] fixup! align docstrings (ignore_errors/yields) in data backends --- src/ralph/backends/data/async_es.py | 3 +-- src/ralph/backends/data/swift.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ralph/backends/data/async_es.py b/src/ralph/backends/data/async_es.py index b91ddfbd0..240ac71ca 100644 --- a/src/ralph/backends/data/async_es.py +++ b/src/ralph/backends/data/async_es.py @@ -139,8 +139,7 @@ async def read( # noqa: PLR0912, PLR0913 dict: The next JSON parsed document if `raw_output` is False. Raise: - BackendException: If a failure occurs during Elasticsearch connection or - during encoding documents and `ignore_errors` is set to `False`. + BackendException: If a failure occurs during Elasticsearch connection. """ if raw_output: documents = self.read( diff --git a/src/ralph/backends/data/swift.py b/src/ralph/backends/data/swift.py index f57bbc8b0..58a2e8434 100644 --- a/src/ralph/backends/data/swift.py +++ b/src/ralph/backends/data/swift.py @@ -193,8 +193,8 @@ def read( # noqa: PLR0913 bytes: If `raw_output` is True. Raise: - BackendException: If a failure during the read operation occurs and - `ignore_errors` is set to `False`. + BackendException: If a failure during the read operation occurs or + during encoding records and `ignore_errors` is set to `False`. BackendParameterException: If a backend argument value is not valid. """ if query.query_string is None: