]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 18 Jun 2023 01:01:08 +0000 (03:01 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 18 Jun 2023 01:01:08 +0000 (03:01 +0200)
- don't invoke update_data() which caused a non-existing instance being updated

fba/models/instances.py

index 204225327ad0fec9b6c4ffc1ac354edb3902c333..cb08eb5bd0f15c20a40bdc6f1df2143fec0806d7 100644 (file)
@@ -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: