Set add_bot_backend() config_data param default to {}.

Previously, the default was None. This caused 500s when
adding a bot without adding a config_data argument.
This commit is contained in:
Robert Hönig 2018-01-30 19:13:08 +01:00 committed by Tim Abbott
parent 02bc506518
commit c0a0e6fd70
1 changed files with 2 additions and 2 deletions

View File

@ -255,8 +255,8 @@ def add_bot_backend(
bot_type: int=REQ(validator=check_int, default=UserProfile.DEFAULT_BOT),
payload_url: Optional[Text]=REQ(validator=check_url, default=""),
service_name: Optional[Text]=REQ(default=None),
config_data: Optional[Dict[Text, Text]]=REQ(default=None,
validator=check_dict(value_validator=check_string)),
config_data: Dict[Text, Text]=REQ(default={},
validator=check_dict(value_validator=check_string)),
interface_type: int=REQ(validator=check_int, default=Service.GENERIC),
default_sending_stream_name: Optional[Text]=REQ('default_sending_stream', default=None),
default_events_register_stream_name: Optional[Text]=REQ('default_events_register_stream',