zulip_botserver: Fix long line for ImportError.

This commit is contained in:
Tim Abbott 2018-05-15 12:23:40 -07:00
parent 9eda19d6cc
commit 1e5c0fec1f

View file

@ -39,8 +39,10 @@ def load_lib_modules() -> None:
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:
raise ImportError("\n Import Error: Bot \"{}\" doesn't exists. Please make sure you have set up the flaskbotrc " raise ImportError(
"file correctly.\n".format(bot)) "\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() -> Optional[BadRequest]: def load_bot_handlers() -> Optional[BadRequest]:
for bot in available_bots: for bot in available_bots: