]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 5 Jul 2023 17:59:29 +0000 (19:59 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 5 Jul 2023 18:02:41 +0000 (20:02 +0200)
- error fixed (ops?)

.gitignore
config.defaults.json
fba/models/error_log.py

index 2512f9be85e909bee0bd2d0bbe635fd1899d9264..327f96a33dfd6fa5faa6bc272ab238bfff25c7f6 100644 (file)
@@ -5,3 +5,4 @@ config.json
 *.cover
 *.pyc
 report.txt
+*.log
index a930207e30b0d6039979f96378c2166460d852db..5385236f5f4447d4a2837b64ffc10a43ee9ef2aa 100644 (file)
@@ -6,12 +6,12 @@
     "useragent"               : "Mozilla/5.0 (Windows NT 10.0; rv:113.0) Gecko/20100101 Firefox/113.0",
     "connection_timeout"      : 30,
     "read_timeout"            : 5,
-    "hostname"                : "fba.ryona.agency",
+    "hostname"                : "example.org",
     "timestamp_format"        : "%Y-%m-%d %H:%M",
     "nodeinfo_connection_timeout": 3,
     "nodeinfo_read_timeout"   : 2,
     "bot_enabled"             : false,
-    "bot_instance"            : "https://example.com",
+    "bot_instance"            : "https://example.org",
     "bot_token"               : "",
     "bot_visibility"          : "unlisted",
     "slogan"                  : "### Your footer slogan ###",
index 47c9eca4debd6a1864877bb312d2574e5464fd8b..3e6e35b8e123e1eab56b5d4beec121a20d972c77 100644 (file)
@@ -34,7 +34,7 @@ def add(domain: str, error: dict):
         return
 
     logger.debug("error[]='%s' - BEFORE!", type(error))
-    if isinstance(error, BaseException, error, json.decoder.JSONDecodeError):
+    if isinstance(error, (BaseException, json.decoder.JSONDecodeError)):
         error = f"error[{type(error)}]='{str(error)}'"
     logger.debug("error[]='%s' - AFTER!", type(error))