In some modules, raise ImportError to avoid module loading on errors
This commit is contained in:
parent
2e55ba5671
commit
d95de8c195
10 changed files with 109 additions and 114 deletions
|
|
@ -24,7 +24,10 @@ def load(context):
|
|||
mod.send_response = context.send_response
|
||||
page.load(context.config, context.add_hook)
|
||||
watchWebsite.load(context.data)
|
||||
whois.load(context.config, context.add_hook)
|
||||
try:
|
||||
whois.load(context.config, context.add_hook)
|
||||
except ImportError:
|
||||
logger.exception("Unable to load netwhois module")
|
||||
|
||||
|
||||
def help_full():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue