Make a missing web_plugins.py module error more gracefully.
This commit is contained in:
parent
64c74c41a1
commit
25e1126809
1 changed files with 6 additions and 1 deletions
|
|
@ -50,7 +50,12 @@ SERVER_STARTSTOP_MODULE = mod_import(settings.AT_SERVER_STARTSTOP_MODULE)
|
||||||
|
|
||||||
# modules containing plugin services
|
# modules containing plugin services
|
||||||
SERVER_SERVICES_PLUGIN_MODULES = [mod_import(module) for module in make_iter(settings.SERVER_SERVICES_PLUGIN_MODULES)]
|
SERVER_SERVICES_PLUGIN_MODULES = [mod_import(module) for module in make_iter(settings.SERVER_SERVICES_PLUGIN_MODULES)]
|
||||||
WEB_PLUGINS_MODULE = mod_import(settings.WEB_PLUGINS_MODULE)
|
try:
|
||||||
|
WEB_PLUGINS_MODULE = mod_import(settings.WEB_PLUGINS_MODULE)
|
||||||
|
except ImportError:
|
||||||
|
WEB_PLUGINS_MODULE = None
|
||||||
|
print ("WARNING: settings.WEB_PLUGINS_MODULE not found - "
|
||||||
|
"copy 'evennia/game_template/server/conf/web_plugins.py to mygame/server/conf.")
|
||||||
|
|
||||||
#------------------------------------------------------------
|
#------------------------------------------------------------
|
||||||
# Evennia Server settings
|
# Evennia Server settings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue