From c32a1efec962b309dbe9e2904a991016ad6e575e Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 2 Sep 2013 01:04:51 +0200 Subject: assert nonnull soledad --- keymanager/src/leap/keymanager/keys.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keymanager/src/leap') diff --git a/keymanager/src/leap/keymanager/keys.py b/keymanager/src/leap/keymanager/keys.py index 1c33745..b8e88d4 100644 --- a/keymanager/src/leap/keymanager/keys.py +++ b/keymanager/src/leap/keymanager/keys.py @@ -219,6 +219,8 @@ class EncryptionScheme(object): """ Initialize the database indexes. """ + leap_assert(self._soledad is not None, + "Cannot init indexes with null soledad") # Ask the database for currently existing indexes. db_indexes = dict(self._soledad.list_indexes()) # Loop through the indexes we expect to find. -- cgit v1.2.3