Error out when data_dir is not specified. #11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
534492fe45
commit
94e3a62d8a
1 changed files with 2 additions and 3 deletions
|
@ -204,9 +204,8 @@ class XEP_0384(BasePlugin):
|
||||||
raise PluginCouldNotLoad
|
raise PluginCouldNotLoad
|
||||||
|
|
||||||
if not self.data_dir:
|
if not self.data_dir:
|
||||||
log.info("xep_0384 cannot be loaded as there is not data directory "
|
raise PluginCouldNotLoad("xep_0384 cannot be loaded as there is "
|
||||||
"specified")
|
"no data directory specified.")
|
||||||
return None
|
|
||||||
|
|
||||||
storage = self.storage_backend
|
storage = self.storage_backend
|
||||||
if self.storage_backend is None:
|
if self.storage_backend is None:
|
||||||
|
|
Loading…
Reference in a new issue