From 81a1172660ab868b0ca610b84b3692e1f61c4526 Mon Sep 17 00:00:00 2001 From: sepehr Date: Tue, 28 Jan 2025 16:14:04 +0300 Subject: [PATCH] return false on MikroTik command error --- py/libs/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/libs/util.py b/py/libs/util.py index 34b3ea8..e6f49c4 100644 --- a/py/libs/util.py +++ b/py/libs/util.py @@ -632,6 +632,8 @@ def run_snippet(dev, snippet): result=ssh.exec_command(snippet) if not result: result="executed successfully" + if "no such item" in result: + result=False except Exception as e: log.error(e) log_alert('ssh',dev,'During backup ssh error')