Fix a bug where None would be returned in try_owners if the cache wasn't yet ready.

This commit is contained in:
Arthur Jovart
2021-08-29 23:53:26 +02:00
parent e9031d34d5
commit 2141ceea2e

View File

@@ -381,6 +381,10 @@ class BotBase(GroupMixin):
if owner:
owners.append(owner)
return owners
else:
# We didn't have owners cached yet, cache them and retry.
await self.populate_owners()
return await self.try_owners()
async def populate_owners(self):
"""|coro|