From a031afbb25f6b676182059c9c8cb3b341a0645b1 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Mon, 2 Mar 2020 17:11:35 +0100 Subject: [PATCH] config: Throw correct exception when address isn't valid Signed-off-by: Andreas Rammhold Signed-off-by: Thomas Gleixner --- remail/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remail/config.py b/remail/config.py index 99d5217..9832f56 100644 --- a/remail/config.py +++ b/remail/config.py @@ -52,7 +52,7 @@ class account_config(object): # Do at least minimal checks for a valid email address if not email_addr_valid(addr): txt = 'Invalid email address: %s' % base - raise RemailListConfig_Exception(txt) + raise RemailListConfigException(txt) self.addr = addr self.name = get_mandatory('name', cfgdict, base)