[Remail] [PATCH v2 1/5] config: throw correct exception when address isn't valid

Andreas Rammhold andi at notmuch.email
Mon Mar 2 17:11:35 CET 2020


From: Andreas Rammhold <andreas at rammhold.de>

Signed-off-by: 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