From 320f4902737557c93300771e9db07aef52adffe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Sun, 6 May 2018 15:04:19 +0200 Subject: [PATCH] encryption: Only try to store the olm info if the olm object exists. --- matrix/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/server.py b/matrix/server.py index f9cb46a..72f8599 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -180,7 +180,8 @@ class MatrixServer: @encrypt_enabled def store_olm(self): - self.olm.to_session_dir() + if self.olm: + self.olm.to_session_dir() def _create_options(self, config_file): options = [