mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
adapt to default-less get_config
This commit is contained in:
parent
58d6612fc9
commit
fa1544d78e
1 changed files with 2 additions and 3 deletions
|
@ -76,9 +76,8 @@ class Account(object):
|
||||||
if name != "sys.config_keys":
|
if name != "sys.config_keys":
|
||||||
self._check_config_key(name)
|
self._check_config_key(name)
|
||||||
name = name.encode("utf8")
|
name = name.encode("utf8")
|
||||||
res = lib.dc_get_config(self._dc_context, name, ffi.NULL)
|
res = lib.dc_get_config(self._dc_context, name)
|
||||||
if res == ffi.NULL:
|
assert res != ffi.NULL, "config value not found for: {!r}".format(name)
|
||||||
raise KeyError("config value not found for: {!r}".format(name))
|
|
||||||
return from_dc_charpointer(res)
|
return from_dc_charpointer(res)
|
||||||
|
|
||||||
def configure(self, **kwargs):
|
def configure(self, **kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue