mirror of
https://github.com/evilhero/mylar
synced 2025-01-20 13:49:02 +00:00
IMP: handling for empty sent_to in Slack notifs
Better handling when sent_to is not being populated (notification is being broadcast to a channel and not directed to a specific user)
This commit is contained in:
parent
eaf1463142
commit
82d14279aa
1 changed files with 4 additions and 1 deletions
|
@ -488,7 +488,10 @@ class SLACK:
|
||||||
module = ''
|
module = ''
|
||||||
module += '[NOTIFIER]'
|
module += '[NOTIFIER]'
|
||||||
|
|
||||||
attachment_text += ' from ' + prov + ' and sent to ' + sent_to
|
if sent_to is None:
|
||||||
|
attachment_text += ' from ' + prov
|
||||||
|
else:
|
||||||
|
attachment_text += ' from ' + prov + ' and sent to ' + sent_to
|
||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
# "text": text,
|
# "text": text,
|
||||||
|
|
Loading…
Reference in a new issue