it wasn't working ?

This commit is contained in:
piair 2022-10-12 14:50:38 +02:00
parent 23a7131792
commit 62f9410373
1 changed files with 2 additions and 2 deletions

4
V4.py
View File

@ -87,8 +87,8 @@ CREDENTIALS_PATH = config["PATH"]["logpath"]
# discord configuration # discord configuration
DISCORD_SUCCESS_LINK = config["DISCORD"]["successlink"] DISCORD_SUCCESS_LINK = config["DISCORD"]["successlink"]
DISCORD_ERROR_LINK = config["DISCORD"]["errorlink"] DISCORD_ERROR_LINK = config["DISCORD"]["errorlink"]
DISCORD_ENABLED_ERROR = config["DISCORD"]["DiscordErrorEnabled"] DISCORD_ENABLED_ERROR = config["DISCORD"]["DiscordErrorEnabled"] == "True"
DISCORD_ENABLED_SUCCESS = config["DISCORD"]["DiscordSuccessEnabled"] DISCORD_ENABLED_SUCCESS = config["DISCORD"]["DiscordSuccessEnabled"]== "True"
if DISCORD_ENABLED_ERROR: if DISCORD_ENABLED_ERROR:
webhookFailure = Webhook.from_url(DISCORD_ERROR_LINK, adapter=RequestsWebhookAdapter()) webhookFailure = Webhook.from_url(DISCORD_ERROR_LINK, adapter=RequestsWebhookAdapter())