diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-17 23:36:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-17 23:36:22 +0200 |
| commit | f1b2884943ab6fd1e3ba37b017d41b65645f49dc (patch) | |
| tree | b4b63564cc2f90b4e90d3efd785ae181f49c46c7 | |
| parent | b0fc1ec3b159b7a7fa917f2e338485921800374e (diff) | |
Don't try to send KDM email unless we have a from address.
| -rw-r--r-- | src/lib/kdm_with_metadata.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/kdm_with_metadata.cc b/src/lib/kdm_with_metadata.cc index 5c1ab0aa6..bebb5df86 100644 --- a/src/lib/kdm_with_metadata.cc +++ b/src/lib/kdm_with_metadata.cc @@ -212,6 +212,10 @@ send_emails ( throw NetworkError (_("No mail server configured in preferences")); } + if (config->kdm_from().empty()) { + throw NetworkError(_("No KDM from address configured in preferences")); + } + for (auto const& kdms_for_cinema: kdms) { auto first = kdms_for_cinema.front(); |
