FIX: Mejora control de errores

This commit is contained in:
Roboron3042 2024-10-15 21:31:56 +02:00
parent 85be0ca722
commit f0bad020ae
1 changed files with 1 additions and 1 deletions

View File

@ -58,8 +58,8 @@ for i in range(0, max_notifications - 5):
api.status_reply(n['status'], mensaje_mismo, visibility="unlisted") api.status_reply(n['status'], mensaje_mismo, visibility="unlisted")
else: else:
# Find account if it is not known by the server # Find account if it is not known by the server
api.search(target, result_type="accounts")
try: try:
api.search(target, result_type="accounts")
bio = api.account_lookup(target) bio = api.account_lookup(target)
except: except:
api.status_post(user + mensaje_no_encontrado, in_reply_to_id=n['status']['id'], visibility="direct" ) api.status_post(user + mensaje_no_encontrado, in_reply_to_id=n['status']['id'], visibility="direct" )