lib: Read bot's config file by `ConfigParser.read_file` method.
This was introduced in the refactor in
The correct function taking an open file handle is read_file, not read().
Fixes
MODIFY
zulip_bots/zulip_bots/lib.py
zulip_bots/zulip_bots/lib.py
@@ -199,7 +199,7 @@ class ExternalBotHandler(object):
config_parser = configparser.ConfigParser()
with open(self.bot_config_file) as conf:
try:
- config_parser.read(conf)
+ config_parser.read_file(conf)
except configparser.Error as e:
display_config_file_errors(str(e), self.bot_config_file)
sys.exit(1)

lib: Read bot's config file by `ConfigParser.read_file` method.

This was introduced in the refactor in
a8665aaac89ce703e708d2d456131ab978a3f7e6.

The correct function taking an open file handle is read_file, not read().

Fixes #414.