mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
bots: Check existance of config file in get_config_info().
This commit is contained in:
@@ -102,7 +102,7 @@ class BotHandlerApi(object):
|
||||
our_dir, '..', 'bots', bot_name, bot_name + '.conf'))
|
||||
section = section or bot_name
|
||||
config = configparser.ConfigParser()
|
||||
config.read(conf_file_path)
|
||||
config.readfp(open(conf_file_path))
|
||||
return dict(config.items(section))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user