[Bps-public-commit] rt-extension-notifyslack branch, craig, updated. b9bf4437298a1ddf160dcbfb49541b1775ee0684
Craig Kaiser
craig at bestpractical.com
Tue Dec 11 15:52:21 EST 2018
The branch, craig has been updated
via b9bf4437298a1ddf160dcbfb49541b1775ee0684 (commit)
from 50389446709c49e16c14f7bbfdaef39b554e5bf7 (commit)
Summary of changes:
lib/RT/Action/NotifySlack.pm | 1 +
1 file changed, 1 insertion(+)
- Log -----------------------------------------------------------------
commit b9bf4437298a1ddf160dcbfb49541b1775ee0684
Author: Craig Kaiser <craig at kaiserengineering.io>
Date: Tue Dec 11 20:52:14 2018 +0000
Check for TemplateObj
diff --git a/lib/RT/Action/NotifySlack.pm b/lib/RT/Action/NotifySlack.pm
index 306726f..1fddeba 100644
--- a/lib/RT/Action/NotifySlack.pm
+++ b/lib/RT/Action/NotifySlack.pm
@@ -38,6 +38,7 @@ sub Commit {
my $ua = LWP::UserAgent->new;
$ua->timeout(15);
+ return unless $self->TemplateObj && $self->TemplateObj->MIMEObj;
my $payload = $self->TemplateObj->MIMEObj->as_string;
my $req = POST("$webhook_url", ['payload' => $payload]);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list