mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
fix set_config()
This commit is contained in:
@@ -100,7 +100,7 @@ class Account(object):
|
|||||||
"""
|
"""
|
||||||
self._check_config_key(name)
|
self._check_config_key(name)
|
||||||
name = name.encode("utf8")
|
name = name.encode("utf8")
|
||||||
if name == b"addr" and self.is_configured():
|
if name == "addr" and self.is_configured():
|
||||||
raise ValueError("can not change 'addr' after account is configured.")
|
raise ValueError("can not change 'addr' after account is configured.")
|
||||||
if value is not None:
|
if value is not None:
|
||||||
value = value.encode("utf8")
|
value = value.encode("utf8")
|
||||||
|
|||||||
Reference in New Issue
Block a user