mirror of https://github.com/caronc/apprise
slight refactoring
parent
b2818d44e1
commit
9bb0f7e828
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue