fantasy_football_chat_bot
fantasy_football_chat_bot copied to clipboard
Error when running weekly trophy job
Describe the bug Attribute error when running job for weekly trophies To Reproduce
From heroku log: '2022-09-13T11:30:02.539765+00:00 app[worker.1]: File "/app/ff_bot/ff_bot.py", line 377, in get_trophies 2022-09-13T11:30:02.539765+00:00 app[worker.1]: low_team_name = i.away_team.team_name 2022-09-13T11:30:02.539765+00:00 app[worker.1]: AttributeError: 'int' object has no attribute 'team_name'' Expected behavior Weekly report of of scores and trophies Screenshots If applicable, add screenshots to help explain your problem.
Chat application Discord Additional context Add any other context about the problem here
Is your league full? Can also send me a DM in discord and we can work it out.
Ahh we have an odd number of teams.
League has to be full due to the nature of grabbing home and away team info. I'll leave the issue open if it gets tackled.