From ff5bce985f0f4cc2e688252ac2b4eeeb0716e158 Mon Sep 17 00:00:00 2001 From: xenua Date: Fri, 6 Jan 2023 22:37:55 +0100 Subject: [PATCH] fix unreliable post boosting --- main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5589efa..70e15d9 100755 --- a/main.py +++ b/main.py @@ -89,8 +89,13 @@ def main(): i += 1 m.status_unreblog(t["id"]) - sleep(10) - m.status_reblog(t["id"]) + while True: + try: + sleep(5) + m.status_reblog(t["id"]) + break + except: + ... typer.echo(f"boosting! running for {delay*i} minutes...")