mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fix exception on notify if hostname not set
This commit is contained in:
parent
c9d0dca5b0
commit
c33047f60c
@ -141,7 +141,7 @@ func sendRemoteNotification(notification *store.Notification) {
|
||||
if err != nil {
|
||||
ErrMsg(err)
|
||||
}
|
||||
if resp.StatusCode != 200 {
|
||||
if resp == nil || resp.StatusCode != 200 {
|
||||
LogMsg("failed to notify contact")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user