mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/tglx/remail.git
synced 2024-11-22 12:22:37 +01:00
config: Throw correct exception when address isn't valid
Signed-off-by: Andreas Rammhold <andreas@rammhold.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
342d696b2b
commit
a031afbb25
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class account_config(object):
|
||||||
# Do at least minimal checks for a valid email address
|
# Do at least minimal checks for a valid email address
|
||||||
if not email_addr_valid(addr):
|
if not email_addr_valid(addr):
|
||||||
txt = 'Invalid email address: %s' % base
|
txt = 'Invalid email address: %s' % base
|
||||||
raise RemailListConfig_Exception(txt)
|
raise RemailListConfigException(txt)
|
||||||
|
|
||||||
self.addr = addr
|
self.addr = addr
|
||||||
self.name = get_mandatory('name', cfgdict, base)
|
self.name = get_mandatory('name', cfgdict, base)
|
||||||
|
|
Loading…
Reference in a new issue