From 23a7131792861b5acccf50eb7e66b473ee9c1045 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 11 Oct 2022 21:45:47 +0200 Subject: [PATCH] yup --- V4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/V4.py b/V4.py index b4126b2..0bab1e1 100755 --- a/V4.py +++ b/V4.py @@ -90,9 +90,9 @@ DISCORD_ERROR_LINK = config["DISCORD"]["errorlink"] DISCORD_ENABLED_ERROR = config["DISCORD"]["DiscordErrorEnabled"] DISCORD_ENABLED_SUCCESS = config["DISCORD"]["DiscordSuccessEnabled"] -if ErrorEnabled: +if DISCORD_ENABLED_ERROR: webhookFailure = Webhook.from_url(DISCORD_ERROR_LINK, adapter=RequestsWebhookAdapter()) -if SuccessEnabled: +if DISCORD_ENABLED_SUCCESS: webhookSuccess = Webhook.from_url(DISCORD_SUCCESS_LINK, adapter=RequestsWebhookAdapter()) # base settings @@ -178,7 +178,7 @@ def claim_amazon(): else : LogError("la recuperation ne peux pas être automatique") except Exception as e : - LogError('problème dans la recuperation') + LogError('problème dans la recuperation' + e)