mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Return a fake MakeDB function when documenting plugins.
There's no need to actually search for valid database backends when documenting. It only gets in the way of the actual document generation process. Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
5c2b493509
commit
faed698932
@ -105,6 +105,12 @@ class NoSuitableDatabase(Exception):
|
|||||||
self.suitable)
|
self.suitable)
|
||||||
|
|
||||||
def DB(filename, types):
|
def DB(filename, types):
|
||||||
|
# We don't care if any of the DBs are actually available when
|
||||||
|
# documenting, so just fake that we found something suitable
|
||||||
|
if world.documenting:
|
||||||
|
def junk(*args, **kwargs):
|
||||||
|
pass
|
||||||
|
return junk
|
||||||
filename = conf.supybot.directories.data.dirize(filename)
|
filename = conf.supybot.directories.data.dirize(filename)
|
||||||
def MakeDB(*args, **kwargs):
|
def MakeDB(*args, **kwargs):
|
||||||
for type in conf.supybot.databases():
|
for type in conf.supybot.databases():
|
||||||
|
Loading…
Reference in New Issue
Block a user