mirror of https://github.com/gophish/gophish
Ignoring error for no sending profile found. Fixes #189
parent
0741e163f5
commit
625f4f8dc0
|
@ -180,7 +180,10 @@ func GetCampaign(id int64, uid int64) (Campaign, error) {
|
|||
}
|
||||
err = db.Table("SMTP").Where("id=?", c.SMTPId).Find(&c.SMTP).Error
|
||||
if err != nil {
|
||||
// For now, since we just introduced the new sending profiles
|
||||
// we'll return nil for the error
|
||||
Logger.Printf("%s: sending profile not found for campaign\n", err)
|
||||
err = nil
|
||||
}
|
||||
return c, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue