From 989f3b706d97045f4ea6af69fd11233e2f54adbf Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Thu, 23 Mar 2017 18:47:03 +0000 Subject: Stop listing if recursion limit is hit (#234) --- docs/api-usage.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/api-usage.rst') diff --git a/docs/api-usage.rst b/docs/api-usage.rst index a15aecb..7b7ab78 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -142,7 +142,9 @@ parameter to get all the items when using listing methods: python-gitlab will iterate over the list by calling the correspnding API multiple times. This might take some time if you have a lot of items to retrieve. This might also consume a lot of memory as all the items will be - stored in RAM. + stored in RAM. If you're encountering the python recursion limit exception, + use ``safe_all=True`` instead to stop pagination automatically if the + recursion limit is hit. Sudo ==== -- cgit v1.2.1