Closed dastone16 closed 2 weeks ago
Thanks for reporting this issue @dastone16, it should be fixed in 58622141b2deced6688a550998212bc6c3f8fa93 (https://github.com/uberfastman/fantasy-football-metrics-weekly-report/releases/tag/v19.5.0), so please pull the latest v19.5.0 to update. Let me know if there are any other issues!
Description of Issue
I'm having similar error as issue #186 for two leagues. Strangely one league is working. The league that will output a report has no IR or taxi squad, simply starters and bench.
Additional Information as Applicable
Fantasy Football Platform
Sleeper
League ID
Dynasty with IR and Taxi: 1070906400051781632
Keeper with IR: 1104259394922958848 Redraft no IR: 1117589836115927040 (output successful)
Operating System
Windows
Other
Terminal Output:
C:\Users\Administrator\SynologyDrive\weekly-fantasy-report\fantasy-football-metrics-weekly-report>docker exec -it fantasy-football-metrics-weekly-report-app-1 python main.py 2024-11-05 22:39:50,479 - utilities.settings - DEBUG - All required local ".env" file variables present. 2024-11-05 22:39:50,492 - utilities.settings - DEBUG - The ".env" file is available. Running Fantasy Football Metrics Weekly Report app... 2024-11-05 22:39:54,347 - root - DEBUG - Running fantasy football metrics weekly report app with arguments: [] 2024-11-05 22:39:57,458 - root - DEBUG - Fantasy football metrics weekly report app settings options: {} 2024-11-05 22:39:57,482 - utilities.app - DEBUG - Checking upstream remote for app updates. 2024-11-05 22:40:03,119 - utilities.app - INFO - The Fantasy Football Metrics Weekly Report app is up to date and running v19.4.0. Generate report for default league? (y/n) -> y Generate report for default week? (y/n) -> y 2024-11-05 22:40:10,854 - report.builder - DEBUG - Instantiating fantasy football report. 2024-11-05 22:40:10,857 - report.builder - INFO - Generating Sleeper Fantasy Football report with settings: league id: 1070906400051781632 game id: nfl week: selected/default start_week: default=1 save_data: False refresh_web_data: False playoff_prob_sims: None break_ties: False dq_ce: False offline: False test: False on Nov 05, 2024... 2024-11-05 22:40:10,858 - report.builder - INFO - Retrieving fantasy football data from Sleeper API... 2024-11-05 22:40:10,858 - utilities.app - DEBUG - Retrieving current NFL week from the Sleeper API. Traceback (most recent call last): File "/opt/ffmwr/main.py", line 295, in
report = select_league(
^^^^^^^^^^^^^^
File "/opt/ffmwr/main.py", line 175, in select_league
return FantasyFootballReport(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ffmwr/report/builder.py", line 104, in init
self.league: BaseLeague = league_data_factory(
^^^^^^^^^^^^^^^^^^^^
File "/opt/ffmwr/utilities/app.py", line 187, in league_data_factory
return sleeper_league.map_data_to_base()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ffmwr/dao/platforms/sleeper.py", line 566, in map_data_to_base
base_player.display_position = self.get_mapped_position(player.get("position"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/ffmwr/dao/platforms/base/league.py", line 154, in get_mapped_position
return self.position_mapping.get(platform_position).get("base")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'