From 7fb70f217e14ceb61e98727b64d0b75468ed19d5 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 24 May 2023 14:36:21 +0800 Subject: [PATCH] [fix] archive toot no work --- BDSM/toot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BDSM/toot.py b/BDSM/toot.py index 1ede998..3fb8f66 100644 --- a/BDSM/toot.py +++ b/BDSM/toot.py @@ -224,7 +224,7 @@ def archive_toot(url, archive_args): skip_duplicates = False @retry(stop=stop_after_attempt(5)) - def fetch_next_statuses(): + def fetch_next_statuses(statuses ): return mastodon.fetch_next(statuses) def archive(statuses, skip_duplicates=True): @@ -240,7 +240,7 @@ def archive_toot(url, archive_args): print("检测到重复嘟文达到十次,取消存档……") break - statuses = fetch_next_statuses() + statuses = fetch_next_statuses(statuses ) if statuses == None: break