- if match.prefix():
- result_lines = await do_goal(match)
- for line in result_lines:
- await bot.api.send_text_message(
- room.room_id, str(line))
+ try:
+ if match.prefix():
+ result_lines = await do_goal(match)
+ for line in result_lines:
+ await bot.api.send_text_message(
+ room.room_id, str(line))
+ except Exception as ex:
+ return ['Ye cannot get ye flask.']