From bfddd3fc69b8ce5cc81c8f37adbe40a8da4c0f7d Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 7 Dec 2022 09:20:55 +0100 Subject: [PATCH] fix typo --- python/src/deltachat/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 302fa395f..2df4bf65b 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -83,7 +83,7 @@ class Account(object): db_path = db_path.encode("utf8") ptr = lib.dc_context_new_closed(db_path) if closed else lib.dc_context_new(ffi.NULL, db_path, ffi.NULL) - if self._dc_context == ffi.NULL: + if ptr == ffi.NULL: raise ValueError("Could not dc_context_new: {} {}".format(os_name, db_path)) self._dc_context = ffi.gc( ptr,