Commit 06ea95db authored by nimrod's avatar nimrod
Browse files

Log notification errors.

Not much I can do about them.
parent d50be8cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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