bots: Require bots_details in ExternalBotHandler.
This parameter was defaulting to a dictionary, which is a classic Python pitfall.
This commit is contained in:
parent
ef30261858
commit
8a15452525
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ def load_bot_handlers():
|
|||
try:
|
||||
bot_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
'bots', bot)
|
||||
bot_handlers[bot] = ExternalBotHandler(client, bot_dir)
|
||||
bot_handlers[bot] = ExternalBotHandler(client, bot_dir, bot_details={})
|
||||
except SystemExit:
|
||||
return BadRequest("Cannot fetch user profile for bot {}, make sure you have set up the flaskbotrc "
|
||||
"file correctly.".format(bot))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue