fantasy_football_chat_bot icon indicating copy to clipboard operation
fantasy_football_chat_bot copied to clipboard

Error when running weekly trophy job

Open Elwdipath opened this issue 2 years ago • 3 comments

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

Elwdipath avatar Sep 13 '22 22:09 Elwdipath

Is your league full? Can also send me a DM in discord and we can work it out.

dtcarls avatar Sep 13 '22 22:09 dtcarls

Ahh we have an odd number of teams.

Elwdipath avatar Sep 13 '22 22:09 Elwdipath

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.

dtcarls avatar Sep 13 '22 23:09 dtcarls