You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
dastone16
changed the title
[Bug] Short Description of Erroneous/Problematic Behavior
[Bug] AttributeError: 'NoneType' object has no attribute 'get'
Nov 6, 2024
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'
The text was updated successfully, but these errors were encountered: