Error out when data_dir is not specified. #11

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-12 01:30:30 +01:00
parent 534492fe45
commit 94e3a62d8a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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: