mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
don't raise an error if addr changes
This commit is contained in:
@@ -169,8 +169,6 @@ class Account(object):
|
|||||||
"""
|
"""
|
||||||
self._check_config_key(name)
|
self._check_config_key(name)
|
||||||
namebytes = name.encode("utf8")
|
namebytes = name.encode("utf8")
|
||||||
if namebytes == b"addr" and self.is_configured():
|
|
||||||
raise ValueError("can not change 'addr' after account is configured.")
|
|
||||||
if isinstance(value, (int, bool)):
|
if isinstance(value, (int, bool)):
|
||||||
value = str(int(value))
|
value = str(int(value))
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user