From faed69893202c39c9736297d7a497803a5ff96d8 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 27 Apr 2009 19:31:58 -0400 Subject: [PATCH] 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 --- plugins/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/__init__.py b/plugins/__init__.py index 7de5adc88..71a66ded0 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -105,6 +105,12 @@ class NoSuitableDatabase(Exception): self.suitable) 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) def MakeDB(*args, **kwargs): for type in conf.supybot.databases():