diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index d6a974a..6b878da 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -261,8 +261,8 @@ def updateIPs(ips): try: with open(os.path.join(CONFIG_PATH, "config.json")) as config_file: config = json.loads(config_file.read()) - except: - print("😡 Error reading config.json") + except Exception as e: + print(f"😡 Error reading config.json {str(e)}") # wait 10 seconds to prevent excessive logging on docker auto restart time.sleep(10)