diff --git a/statsapi/__init__.py b/statsapi/__init__.py index c784e03..0ce66d8 100644 --- a/statsapi/__init__.py +++ b/statsapi/__init__.py @@ -1218,7 +1218,7 @@ def lookup_team(lookup_value, activeStatus="Y", season=None, sportIds=1): "fields": "teams,id,name,teamCode,fileCode,teamName,locationName,shortName", } if not season: - season_data = latest_season(sportId=sportIds.split(",")[0]) + season_data = latest_season(sportId=str(sportIds).split(",")[0]) season = season_data.get("seasonId", datetime.now().year) params.update( { diff --git a/statsapi/version.py b/statsapi/version.py index 12ede69..6be5123 100644 --- a/statsapi/version.py +++ b/statsapi/version.py @@ -1,3 +1,3 @@ #!/usr/bin/env python -VERSION = "1.5" +VERSION = "1.5.1"