From 1ca249f8108a3bccc1b9bcb56602f712937f02a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 18 Jun 2023 03:01:08 +0200 Subject: [PATCH] Continued: - don't invoke update_data() which caused a non-existing instance being updated --- fba/models/instances.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fba/models/instances.py b/fba/models/instances.py index 2042253..cb08eb5 100644 --- a/fba/models/instances.py +++ b/fba/models/instances.py @@ -262,11 +262,9 @@ def set_last_error(domain: str, error: dict): _set_data("last_status_code" , domain, error["status_code"]) _set_data("last_error_details", domain, error["json"]["error"] if error["json"]["error"] != "" else None) - # Running pending updated - # DEBUG: print(f"DEBUG: Invoking update_data({domain}) ...") - update_data(domain) - + # DEBUG: print(f"DEBUG: Invoking error_log.add(domain='{domain}',error[]='{type(error)}'") error_log.add(domain, error) + # DEBUG: print("DEBUG: EXIT!") def is_registered(domain: str) -> bool: -- 2.39.5