This commit is contained in:
2025-07-29 15:39:50 +02:00
parent f86221a757
commit cad343ea65

View File

@@ -142,7 +142,10 @@ while True:
logging.debug("path exist") logging.debug("path exist")
time.sleep(5) time.sleep(5)
if _DEV == "": if _DEV == "":
try:
file = open(_IMP_FILE, 'r') file = open(_IMP_FILE, 'r')
except:
break
content = file.read() content = file.read()
_DEV = json.loads(content)["device"] _DEV = json.loads(content)["device"]