get_message returns None when no message was found

This commit is contained in:
Joscha 2018-07-31 15:19:11 +00:00
parent bb2dadb862
commit df72a3d9cf

View file

@ -81,7 +81,9 @@ class Room:
id=mid
)
if data:
return Message.from_dict(data)
# else: message does not exist
# The log returned is sorted from old to new
async def log(self, n, before=None):