From: Roland Häder Date: Wed, 5 Jul 2023 17:59:29 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59bf8ad20356103964ab97605280969953fca22d;p=fba.git Continued: - error fixed (ops?) --- diff --git a/.gitignore b/.gitignore index 2512f9b..327f96a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ config.json *.cover *.pyc report.txt +*.log diff --git a/config.defaults.json b/config.defaults.json index a930207..5385236 100644 --- a/config.defaults.json +++ b/config.defaults.json @@ -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 ###", diff --git a/fba/models/error_log.py b/fba/models/error_log.py index 47c9eca..3e6e35b 100644 --- a/fba/models/error_log.py +++ b/fba/models/error_log.py @@ -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))