1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix bug where get_author would return None on Telegram

This commit is contained in:
Steffo 2019-05-05 18:25:55 +02:00
parent f01e1b292a
commit b98c8aa760

View file

@ -76,6 +76,8 @@ class TelegramBot(GenericBot):
result = await asyncify(query.one_or_none) result = await asyncify(query.one_or_none)
if result is None and error_if_none: if result is None and error_if_none:
raise UnregisteredError("Author is not registered") raise UnregisteredError("Author is not registered")
return result
return TelegramCall return TelegramCall
def __init__(self, *, def __init__(self, *,