From bf72a8994a936f6f111f8bce526556664631f6d0 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Tue, 7 Nov 2017 14:44:31 +0100 Subject: [PATCH] zulip_botserver: Raise exception on wrong flaskbotrc file. --- zulip_botserver/zulip_botserver/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_botserver/zulip_botserver/server.py b/zulip_botserver/zulip_botserver/server.py index d9fde80..17545f8 100644 --- a/zulip_botserver/zulip_botserver/server.py +++ b/zulip_botserver/zulip_botserver/server.py @@ -42,8 +42,8 @@ def load_lib_modules(): lib_module = import_module(module_name) bots_lib_module[bot] = lib_module except ImportError: - print("\n Import Error: Bot \"{}\" doesn't exists. Please make sure you have set up the flaskbotrc " - "file correctly.\n".format(bot)) + raise ImportError("\n Import Error: Bot \"{}\" doesn't exists. Please make sure you have set up the flaskbotrc " + "file correctly.\n".format(bot)) def load_bot_handlers(): # type: () -> Any