Fix a bug where None would be returned in try_owners if the cache wasn't yet ready.
This commit is contained in:
@@ -381,6 +381,10 @@ class BotBase(GroupMixin):
|
|||||||
if owner:
|
if owner:
|
||||||
owners.append(owner)
|
owners.append(owner)
|
||||||
return owners
|
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):
|
async def populate_owners(self):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
Reference in New Issue
Block a user