diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-03-02 17:11:36 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-03-04 09:42:35 +0100 |
commit | 79d26fccfe9581b8868412a263aa66da568ccefb (patch) | |
tree | ead421855e091f30593097fb751741f079424e10 | |
parent | a031afbb25f6b676182059c9c8cb3b341a0645b1 (diff) | |
download | remail-79d26fccfe9581b8868412a263aa66da568ccefb.tar.gz |
config: Pass the incorrect mail address instead of the config path
Previously remail just logged the path of the attribute (e.g.
base.lists.demo.listaccount.addr) instead of the actually mail address that
wasn't valid.
Signed-off-by: Andreas Rammhold <andreas@rammhold.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | remail/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remail/config.py b/remail/config.py index 9832f56..d3ce5d5 100644 --- a/remail/config.py +++ b/remail/config.py @@ -51,7 +51,7 @@ class account_config(object): base = base + '.addr' # Do at least minimal checks for a valid email address if not email_addr_valid(addr): - txt = 'Invalid email address: %s' % base + txt = 'Invalid email address: %s' % addr raise RemailListConfigException(txt) self.addr = addr |