Verified Commit 94e3a62d authored by Maxime Buquet's avatar Maxime Buquet

Error out when data_dir is not specified. #11

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 534492fe
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment