slight refactoring

pull/1357/head
Chris Caron 2025-07-06 20:30:08 -04:00
parent b2818d44e1
commit 9bb0f7e828
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,6 @@ class NotifySpike(NotifyBase):
"""
Send Spike.sh Notification
"""
self.throttle()
payload = {
'message': title if title else body,
@ -129,6 +128,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,