Loading mnpw/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
mnpw/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading