This commit is contained in:
piair 2022-10-11 21:45:47 +02:00
parent 49cf33c780
commit 23a7131792
1 changed files with 3 additions and 3 deletions

6
V4.py
View File

@ -90,9 +90,9 @@ DISCORD_ERROR_LINK = config["DISCORD"]["errorlink"]
DISCORD_ENABLED_ERROR = config["DISCORD"]["DiscordErrorEnabled"] DISCORD_ENABLED_ERROR = config["DISCORD"]["DiscordErrorEnabled"]
DISCORD_ENABLED_SUCCESS = config["DISCORD"]["DiscordSuccessEnabled"] DISCORD_ENABLED_SUCCESS = config["DISCORD"]["DiscordSuccessEnabled"]
if ErrorEnabled: if DISCORD_ENABLED_ERROR:
webhookFailure = Webhook.from_url(DISCORD_ERROR_LINK, adapter=RequestsWebhookAdapter()) webhookFailure = Webhook.from_url(DISCORD_ERROR_LINK, adapter=RequestsWebhookAdapter())
if SuccessEnabled: if DISCORD_ENABLED_SUCCESS:
webhookSuccess = Webhook.from_url(DISCORD_SUCCESS_LINK, adapter=RequestsWebhookAdapter()) webhookSuccess = Webhook.from_url(DISCORD_SUCCESS_LINK, adapter=RequestsWebhookAdapter())
# base settings # base settings
@ -178,7 +178,7 @@ def claim_amazon():
else : else :
LogError("la recuperation ne peux pas être automatique") LogError("la recuperation ne peux pas être automatique")
except Exception as e : except Exception as e :
LogError('problème dans la recuperation') LogError('problème dans la recuperation' + e)