From a1969a3e2eddab5bb1e4a0c3ea5249d5c7ceea98 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 30 Sep 2022 14:26:34 +0200 Subject: [PATCH] removed discord requirement --- V4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index 5514c0c..5ba0110 100755 --- a/V4.py +++ b/V4.py @@ -89,8 +89,8 @@ SuccessLink = config["DISCORD"]["successlink"] ErrorLink = config["DISCORD"]["errorlink"] discord_enabled = config["DISCORD"]["enabled"] -webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter()) if discord_enabled: + webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter()) webhookSuccess = Webhook.from_url(SuccessLink, adapter=RequestsWebhookAdapter()) #base settings @@ -278,7 +278,7 @@ def LogError(message, log=FULL_LOG, Mobdriver=None): else: gdriver = driver - if LINUX_HOST: + if LINUX_HOST and discord_enabled: with open("page.html", "w") as f: f.write(gdriver.page_source)