diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index 64dc6e9..5d89909 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -267,8 +267,8 @@ def updateIPs(ips): config = json.loads(Template(config_file.read()).safe_substitute(ENV_VARS)) else: 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)