From bcfeed951982be5ac88b8821f31c05d357a2a252 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 6 Jul 2025 20:30:08 -0400 Subject: [PATCH] slight refactoring --- apprise/plugins/spike.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apprise/plugins/spike.py b/apprise/plugins/spike.py index 4dfedd58..65d681cf 100644 --- a/apprise/plugins/spike.py +++ b/apprise/plugins/spike.py @@ -108,7 +108,6 @@ class NotifySpike(NotifyBase): def send(self, body, title="", notify_type=NotifyType.INFO, **kwargs): """Send Spike.sh Notification.""" - self.throttle() payload = { "message": title if title else body, @@ -120,6 +119,9 @@ class NotifySpike(NotifyBase): "Content-Type": "application/json", } + # Always call throttle before any remote server i/o is made + self.throttle() + try: response = requests.post( self.webhook_url,