From 37c2fbdc1afd7b77e06d84544c639fb51e3ef8ad Mon Sep 17 00:00:00 2001 From: Filippo Campi Date: Wed, 12 Jun 2024 10:54:35 +0200 Subject: [PATCH] Fix limit occurrences to 100 --- CHANGES.rst | 3 ++- src/redturtle/volto/monkey.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index b0e0470..e7221ef 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 5.4.10 (unreleased) ------------------- -- Nothing changed yet. +- Fixed limit event occurrences to 100. + [eikichi18] 5.4.9 (2024-04-22) diff --git a/src/redturtle/volto/monkey.py b/src/redturtle/volto/monkey.py index 5278cb3..180888e 100644 --- a/src/redturtle/volto/monkey.py +++ b/src/redturtle/volto/monkey.py @@ -105,7 +105,7 @@ def get_obj(start): "Too many occurrences for %s, stopping at 100", self.context.absolute_url(), ) - raise StopIteration + return limit -= 1 yield get_obj(start)