From 6e813e20c958a9a7a3c5fec304ff0bd9e930c6c2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 5 Mar 2019 10:28:21 +0100 Subject: [PATCH] :o --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index f3b99f07..4740e782 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -220,7 +220,7 @@ def cmd_balurage(bot: telegram.Bot, update: telegram.Update, session: db.Session def parse_diario(session: db.Session, text: str): match = re.match(r'"?(.*)"? (?:—|-{1,2}) ?@?([A-Za-z0-9_]+)$', text) if match is None: - return None + return None, text text_string = match.group(1) author_string = match.group(2).lower() royal = session.query(db.Royal).filter(db.func.lower(db.Royal.username) == author_string).first()