diff --git a/zerver/lib/bot_config.py b/zerver/lib/bot_config.py index 847085b866..756ea28f1b 100644 --- a/zerver/lib/bot_config.py +++ b/zerver/lib/bot_config.py @@ -66,7 +66,7 @@ def load_bot_config_template(bot: str) -> Dict[str, str]: if os.path.isfile(config_path): config = configparser.ConfigParser() with open(config_path) as conf: - config.readfp(conf) + config.read_file(conf) return dict(config.items(bot)) else: return dict()