Add check for wrong endpoint for APIFootball
This commit is contained in:
@@ -80,7 +80,7 @@ public class APIFootballConnector {
|
||||
return this.rounds.get(leagueId);
|
||||
}
|
||||
|
||||
public JSONObject getTeamsForLeague(int league) {
|
||||
public JSONObject getTeamsForLeague(int league) throws Exception {
|
||||
String url = "https://v2.api-football.com/teams/league/" + league;
|
||||
String content = new APIFootballUpdater().getRawData(url);
|
||||
return stringToJSONObject(content);
|
||||
|
||||
Reference in New Issue
Block a user