mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
sipmlify plugins and tests and remove superflous core event
This commit is contained in:
@@ -54,11 +54,11 @@ class Account(object):
|
||||
self._shutdown_event = Event()
|
||||
|
||||
# open database
|
||||
self.db_path = db_path
|
||||
if hasattr(db_path, "encode"):
|
||||
db_path = db_path.encode("utf8")
|
||||
if not lib.dc_open(self._dc_context, db_path, ffi.NULL):
|
||||
raise ValueError("Could not dc_open: {}".format(db_path))
|
||||
self.db_path = db_path
|
||||
self._configkeys = self.get_config("sys.config_keys").split()
|
||||
atexit.register(self.shutdown)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user