From 4a6acc66a1e1db5f6b57bfe9bee9a2a134e8d7fd Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Wed, 4 May 2022 22:46:13 -0400 Subject: [PATCH] safety net --- src/SteamGifts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SteamGifts.py b/src/SteamGifts.py index f734dbd..fe4a979 100644 --- a/src/SteamGifts.py +++ b/src/SteamGifts.py @@ -122,7 +122,7 @@ class SteamGifts: def evaluate_giveaways(self, page=1): n = page run = True - while run: + while run and n < 3: # hard stop safety net at page 3 as idk why we would ever get to this point txt = "⚙️ Retrieving games from %d page." % n logger.info(txt)