joeyagreco / leeger

Instant stats for any fantasy football league.
https://pypi.org/project/leeger
MIT License
61 stars 17 forks source link

[LEAGUE LOADER]: Yahoo league loader unable to find more than 1 league year #27

Closed brian-dev8 closed 2 years ago

brian-dev8 commented 2 years ago

League Loader

Yahoo

Summary

The yahoo league ids change every year so it is only able to find the first year, and then leeger fails when the script detects not all years were found.

League Info

No response

Error Logs

Error Traceback (most recent call last): File "C:\D\windows\git\leeger\test\test_league_loader\test_YahooLeagueLoader.py", line 46, in test_league league: League = yahooLeagueLoader.loadLeague() File "C:\D\windows\git\leeger\leeger\league_loader\YahooLeagueLoader.py", line 69, in loadLeague raise DoesNotExistException(f"Found {len(yahooLeagues)} years, expected to find {len(self._years)}.") leeger.exception.DoesNotExistException.DoesNotExistException: Found 1 years, expected to find 2.

joeyagreco commented 2 years ago

This is now fixed in version 1.3.0