08dd101ef20454d2507652cf0057b2d2562925cd — nicoco 5 months ago 93aad46
fix: do not crash on rate limiting while fetching channel history

Fixes: https://todo.sr.ht/~nicoco/slidcord/6
1 files changed, 2 insertions(+), 2 deletions(-)

M slidcord/group.py
M slidcord/group.py => slidcord/group.py +2 -2
@@ 164,8 164,8 @@ class MUC(LegacyMUC[int, int, Participant, int]):
    async def backfill(self, oldest_id=None, oldest_date=None):
            await self.history(oldest_date)
        except discord.errors.Forbidden:
            self.log.warning("Could not fetch history of %r", self.name)
        except discord.errors.HTTPException as e:
            self.log.warning("Could not fetch history of %r: %r", self.name, e)

    async def history(self, oldest: Optional[datetime] = None):
        if not config.MUC_BACK_FILL: