From 38231cc4f676536f4abb8dbf10450a6bf7f17b48 Mon Sep 17 00:00:00 2001 From: nanos Date: Tue, 21 Mar 2023 14:22:19 +0000 Subject: [PATCH] fix how we deal with failure to get timeline toots --- find_posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_posts.py b/find_posts.py index 548c7f8..1960a25 100644 --- a/find_posts.py +++ b/find_posts.py @@ -236,7 +236,7 @@ def get_timeline(server, access_token, max): toots = toots + response.json() except Exception as ex: log(f"Error getting timeline toots: {ex}") - sys.exit(1) + raise log(f"Found {len(toots)} toots in timeline")