drop when empty
This commit is contained in:
parent
b6e11f148f
commit
b95b776418
@ -52,7 +52,10 @@ def webhook_receiver(id):
|
|||||||
|
|
||||||
if target is not None:
|
if target is not None:
|
||||||
print(target)
|
print(target)
|
||||||
sendmessage(target, data.get('message'))
|
if data.get('message') is not None:
|
||||||
|
sendmessage(target, data.get('message'))
|
||||||
|
else:
|
||||||
|
print("No message, droppint")
|
||||||
else:
|
else:
|
||||||
print("No target found, dropping message")
|
print("No target found, dropping message")
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
User=tellme
|
User=tellme
|
||||||
WorkingDirectory=/opt/tellme
|
WorkingDirectory=/opt/tellme
|
||||||
ExecStart=notifier.py
|
ExecStart=python3 notifier.py
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user