1
0
Fork 0
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:
holger krekel 2018-10-10 10:14:30 +02:00
parent 58d6612fc9
commit fa1544d78e

View file

@ -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):