AndyReifman / ArseneWenger

1 stars 12 forks source link

Next/Fixtures cogs are broken #95

Closed reddit-tennis closed 10 months ago

reddit-tennis commented 11 months ago

Stacktrace:

  File "/usr/local/lib/python3.10/site-packages/discord/app_commands/commands.py", line 841, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore                    
  File "/arseneWenger/cogs/fixtures.py", line 55, in next                                               
    fixtures = parseFixtures()
  File "/arseneWenger/cogs/fixtures.py", line 177, in parseFixtures
    matches = table.findAll("article",attrs={'role':'article'})
AttributeError: 'NoneType' object has no attribute 'findAll'
reddit-tennis commented 11 months ago

Demonstrated a fix in #94 (will re-do PR tomorrow or so, as commits are a bit fuzzy)

image

Details in:

https://github.com/AndyReifman/ArseneWenger/pull/94/commits/081e77e59d253f356c190d1b517dde4e1187b3b9