From 848421a48ec027b10a03944d170536a40597186e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 21 Feb 2019 01:30:04 +0100 Subject: [PATCH] Fix ROYALNET-BA (/ship bug) --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index 73e56ee2..94a97edd 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -532,10 +532,10 @@ def cmd_ship(bot: telegram.Bot, update: telegram.Update): name_two = name_two.lower() part_one = re.search(r"^[A-Za-z][^aeiouAEIOU]*[aeiouAEIOU]?", name_one) part_two = re.search(r"[^aeiouAEIOU]*[aeiouAEIOU]?[A-Za-z]$", name_two) - mixed = part_one.group(0) + part_two.group(0) # TODO: find out what exceptions this could possibly raise if part_one is None or part_two is None: reply(bot, update, strings.SHIP.ERRORS.INVALID_NAMES) return + mixed = part_one.group(0) + part_two.group(0) # TODO: find out what exceptions this could possibly raise reply(bot, update, strings.SHIP.RESULT, one=name_one.capitalize(), two=name_two.capitalize(),