Skip to content
Snippets Groups Projects
Commit 06ea95db authored by nimrod's avatar nimrod
Browse files

Log notification errors.

Not much I can do about them.
parent d50be8cd
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,11 @@ HOSTNAME = socket.gethostname()
def notify(message):
"""Send a notification."""
requests.post(
r = requests.post( # pylint: disable=invalid-name
"https://notify.shore.co.il/send", params={"message": message}
)
if not r.ok:
logging.error(f"Failed to send notification: {r.reason}.")
def main(): # noqa: MC0001
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment