Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

bot_config: Placate mypy 0.930.

Anders Kaseorgc8dd90f32b49
diff --git a/zerver/lib/bot_config.py b/zerver/lib/bot_config.py
index 03bc2c743ef..00d4429ede1 100644
--- a/zerver/lib/bot_config.py
+++ b/zerver/lib/bot_config.py
@@ -72,6 +72,7 @@ def set_bot_config(bot_profile: UserProfile, key: str, value: str) -> None:
def load_bot_config_template(bot: str) -> Dict[str, str]:
bot_module_name = f"zulip_bots.bots.{bot}"
bot_module = importlib.import_module(bot_module_name)
+ assert bot_module.__file__ is not None
bot_module_path = os.path.dirname(bot_module.__file__)
config_path = os.path.join(bot_module_path, f"{bot}.conf")
if os.path.isfile(config_path):