From 59bf8ad20356103964ab97605280969953fca22d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 5 Jul 2023 19:59:29 +0200 Subject: [PATCH] Continued: - error fixed (ops?) --- .gitignore | 1 + config.defaults.json | 4 ++-- fba/models/error_log.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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)) -- 2.39.5