mirror of
https://github.com/BreizhHardware/ntfy_alerts.git
synced 2026-03-18 21:40:38 +01:00
Update to add debug message
This commit is contained in:
1
ntfy.py
1
ntfy.py
@@ -48,6 +48,7 @@ def send_to_ntfy(releases, auth, url):
|
||||
headers = {"Authorization": f"Basic {auth}", "Content-Type": "text/plain"}
|
||||
response = requests.post(f"{url}", headers=headers, data=message)
|
||||
if response.status_code == 200:
|
||||
print(f"Message envoyé à Ntfy pour {app_name}")
|
||||
continue
|
||||
else:
|
||||
print(f"Échec de l'envoi du message à Ntfy. Code d'état : {response.status_code}")
|
||||
|
||||
Reference in New Issue
Block a user