dtcarls / fantasy_football_chat_bot

GroupMe Discord and Slack Chatbot for ESPN Fantasy Football
GNU General Public License v3.0
292 stars 231 forks source link

Error when running weekly trophy job #122

Open Elwdipath opened 1 year ago

Elwdipath commented 1 year ago

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

dtcarls commented 1 year ago

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

Elwdipath commented 1 year ago

Ahh we have an odd number of teams.

dtcarls commented 1 year ago

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.