From 94e3a62d8a5a9760777f3e7b4e83c6ebe168fa21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 12 Mar 2020 01:30:30 +0100 Subject: [PATCH] Error out when data_dir is not specified. #11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 100a72f..bb786b7 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -204,9 +204,8 @@ class XEP_0384(BasePlugin): raise PluginCouldNotLoad if not self.data_dir: - log.info("xep_0384 cannot be loaded as there is not data directory " - "specified") - return None + raise PluginCouldNotLoad("xep_0384 cannot be loaded as there is " + "no data directory specified.") storage = self.storage_backend if self.storage_backend is None: