zulip_botserver: Raise exception on wrong flaskbotrc file.
This commit is contained in:
parent
fb116259d0
commit
bf72a8994a
|
@ -42,8 +42,8 @@ def load_lib_modules():
|
||||||
lib_module = import_module(module_name)
|
lib_module = import_module(module_name)
|
||||||
bots_lib_module[bot] = lib_module
|
bots_lib_module[bot] = lib_module
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("\n Import Error: Bot \"{}\" doesn't exists. Please make sure you have set up the flaskbotrc "
|
raise ImportError("\n Import Error: Bot \"{}\" doesn't exists. Please make sure you have set up the flaskbotrc "
|
||||||
"file correctly.\n".format(bot))
|
"file correctly.\n".format(bot))
|
||||||
|
|
||||||
def load_bot_handlers():
|
def load_bot_handlers():
|
||||||
# type: () -> Any
|
# type: () -> Any
|
||||||
|
|
Loading…
Reference in a new issue