encryption: Only try to store the olm info if the olm object exists.

This commit is contained in:
poljar (Damir Jelić) 2018-05-06 15:04:19 +02:00
parent 8f7dac4a0d
commit 320f490273

View file

@ -180,6 +180,7 @@ class MatrixServer:
@encrypt_enabled @encrypt_enabled
def store_olm(self): def store_olm(self):
if self.olm:
self.olm.to_session_dir() self.olm.to_session_dir()
def _create_options(self, config_file): def _create_options(self, config_file):