05-sep: [bugfix] /estado no respondia: from router_control import estado sombreaba la funcion global del bot (UnboundLocalError)

This commit is contained in:
juanjo
2026-09-05 22:36:31 +02:00
parent 326404f827
commit f78e1b1a98

View File

@@ -433,8 +433,8 @@ def procesar(texto, chat_id):
) )
elif accion_router in ("estado", "status"): elif accion_router in ("estado", "status"):
try: try:
from router_control import estado from router_control import estado as router_estado
enviar("📡 <b>ASUS</b>\n" + estado(), chat_id) enviar("📡 <b>ASUS</b>\n" + router_estado(), chat_id)
except Exception as e: except Exception as e:
log(f"router estado error: {e}") log(f"router estado error: {e}")
enviar(f"❌ Error consultando ASUS: {e}", chat_id) enviar(f"❌ Error consultando ASUS: {e}", chat_id)