From 461031aa3a9be111f285313047fd129b442eece5 Mon Sep 17 00:00:00 2001 From: Tomuxs Date: Tue, 26 Aug 2025 18:19:56 +0200 Subject: [PATCH] Exit retry loop --- py34/post.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py34/post.py b/py34/post.py index 0d8780b..b24afb3 100644 --- a/py34/post.py +++ b/py34/post.py @@ -39,8 +39,10 @@ class Post: res = scraper.get(ThumbnailURL(self.image_dir, self.image_id), retry=False, body=False) if res.status_code == 200: self._thumbnail_data = res.content + break if res.status_code == 404: self._thumbnail_data = b"" + break time.sleep(5) return self._thumbnail_data