From a281768e412a17f7699d547cf57e9ad7179754f0 Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 20 Nov 2024 20:06:47 +0100 Subject: [PATCH] bitwarden --- mqtt_srv.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mqtt_srv.py b/mqtt_srv.py index 57c12ba..ade733a 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -18,11 +18,12 @@ import getopt import random import requests - -with open("/etc/mqtt_srv/mqtt_srv.cfg") as json_file: - config = json.load(json_file) - print(config) - +try: + with open("/etc/mqtt_srv/mqtt_srv.cfg") as json_file: + config = json.load(json_file) + print(config) +except: + config = {} #import psutil stats = {}