From f0bad020ae5b44660214554852766c024937669c Mon Sep 17 00:00:00 2001 From: Roboron3042 Date: Tue, 15 Oct 2024 21:31:56 +0200 Subject: [PATCH] FIX: Mejora control de errores --- apreciabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apreciabot.py b/apreciabot.py index bdf9de0..9ca11a1 100644 --- a/apreciabot.py +++ b/apreciabot.py @@ -58,8 +58,8 @@ for i in range(0, max_notifications - 5): api.status_reply(n['status'], mensaje_mismo, visibility="unlisted") else: # Find account if it is not known by the server - api.search(target, result_type="accounts") try: + api.search(target, result_type="accounts") bio = api.account_lookup(target) except: api.status_post(user + mensaje_no_encontrado, in_reply_to_id=n['status']['id'], visibility="direct" )