[Remail] [PATCH] config: throw correct exception when address isn't valid

andi at notmuch.email andi at notmuch.email
Fri Feb 28 01:09:49 CET 2020


From: Andreas Rammhold <andreas at rammhold.de>

---
 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)
-- 
2.25.1




More information about the Remail mailing list