05-sep: [bugfix] /estado no respondia: from router_control import estado sombreaba la funcion global del bot (UnboundLocalError)
This commit is contained in:
@@ -433,8 +433,8 @@ def procesar(texto, chat_id):
|
||||
)
|
||||
elif accion_router in ("estado", "status"):
|
||||
try:
|
||||
from router_control import estado
|
||||
enviar("📡 <b>ASUS</b>\n" + estado(), chat_id)
|
||||
from router_control import estado as router_estado
|
||||
enviar("📡 <b>ASUS</b>\n" + router_estado(), chat_id)
|
||||
except Exception as e:
|
||||
log(f"router estado error: {e}")
|
||||
enviar(f"❌ Error consultando ASUS: {e}", chat_id)
|
||||
|
||||
Reference in New Issue
Block a user