I hate regex

This commit is contained in:
Nexus 2024-09-20 02:00:31 +01:00
parent d6ed860bc3
commit 2031e079a2

View file

@ -117,7 +117,7 @@ class MSCGetter(niobot.Module):
lines = [] lines = []
for m in matches: for m in matches:
no = m.group(2) no = m.group(3)
if no: if no:
data = await self.get_msc_with_cache(int(no)) data = await self.get_msc_with_cache(int(no))
if data.get("error"): if data.get("error"):