From a490ca6066234df4171f2eb30eeba8f2102cfdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 12 Jan 2019 18:36:32 +0000 Subject: [PATCH] xep_0384: Add check on data_dir before loading plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin.py b/plugin.py index f159aae..4541137 100644 --- a/plugin.py +++ b/plugin.py @@ -141,6 +141,11 @@ class XEP_0384(BasePlugin): "is not available") return + if not self.data_dir: + log.info("xep_0384 canoot be loaded as there is not data directory " + "specified") + return None + storage = SyncFileStorage(self.data_dir) otpkpolicy = KeepingOTPKPolicy() self._omemo_backend = SignalBackend