From 8ad43c8873b1a31ea4ba3e64f500e20044fb89c5 Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 30 Sep 2024 20:24:09 +0200 Subject: [PATCH] bitwarden --- mqtt_srv.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mqtt_srv.py b/mqtt_srv.py index 57cc17f..5408afa 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -311,9 +311,13 @@ def get_ip(): finally: s.close() return IP - - -IP = get_ip() +ex = 0 +while ex == 0: + try: + IP = get_ip() + ex = 1 + except: + time.sleep(5) print("OS : " + curos)