Skip to content

Commit

Permalink
Added debug exception print when reading config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevah5 committed Mar 30, 2024
1 parent a8a7ed1 commit 0453c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudflare-ddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0453c85

Please sign in to comment.