Skip to content

Commit bb1f054

Browse files
emirotnejch
andauthored
docs: add retry_transient infos
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
1 parent b7a1266 commit bb1f054

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api-usage.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ GitLab server can sometimes return a transient HTTP error.
421421
python-gitlab can automatically retry in such case, when
422422
``retry_transient_errors`` argument is set to ``True``. When enabled,
423423
HTTP error codes 500 (Internal Server Error), 502 (502 Bad Gateway),
424-
503 (Service Unavailable), and 504 (Gateway Timeout) are retried. By
425-
default an exception is raised for these errors.
426-
It will retry until reaching `max_retries` value.
424+
503 (Service Unavailable), and 504 (Gateway Timeout) are retried. It will retry until reaching
425+
the `max_retries` value. By default, `retry_transient_errors` is set to `False` and an exception
426+
is raised for these errors.
427427

428428
.. code-block:: python
429429

0 commit comments

Comments
 (0)