mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-03 17:59:19 +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":
|
||||
self._check_config_key(name)
|
||||
name = name.encode("utf8")
|
||||
res = lib.dc_get_config(self._dc_context, name, ffi.NULL)
|
||||
if res == ffi.NULL:
|
||||
raise KeyError("config value not found for: {!r}".format(name))
|
||||
res = lib.dc_get_config(self._dc_context, name)
|
||||
assert res != ffi.NULL, "config value not found for: {!r}".format(name)
|
||||
return from_dc_charpointer(res)
|
||||
|
||||
def configure(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue