mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
addressing review comments
This commit is contained in:
@@ -263,7 +263,10 @@ if __name__ == '__main__':
|
|||||||
config = None
|
config = None
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(CONFIG_PATH, "config.json")) as config_file:
|
with open(os.path.join(CONFIG_PATH, "config.json")) as config_file:
|
||||||
|
if len(ENV_VARS) != 0:
|
||||||
config = json.loads(Template(config_file.read()).safe_substitute(ENV_VARS))
|
config = json.loads(Template(config_file.read()).safe_substitute(ENV_VARS))
|
||||||
|
else:
|
||||||
|
config = json.loads(config_file.read())
|
||||||
except:
|
except:
|
||||||
print("😡 Error reading config.json")
|
print("😡 Error reading config.json")
|
||||||
# wait 10 seconds to prevent excessive logging on docker auto restart
|
# wait 10 seconds to prevent excessive logging on docker auto restart
|
||||||
|
|||||||
Reference in New Issue
Block a user