From 2130182212176533e4ac418553568f60d5d1854a Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sat, 19 Feb 2022 06:50:34 +0000 Subject: [PATCH] fixed pull APIError calls (removed endpoint arg) Former-commit-id: 5090eefdbd5b13bfda285d5480e79896dd3610a5 --- src/pull.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pull.py b/src/pull.py index 09127b0..2996267 100644 --- a/src/pull.py +++ b/src/pull.py @@ -19,7 +19,7 @@ def get_team_competition(): if json['success']: return json['competition'] else: - raise APIError(json, endpoint) + raise APIError(json) def get_team(): endpoint = '/api/fetchTeamCompetition' @@ -32,7 +32,7 @@ def get_team(): if json['success']: return json['team'] else: - raise APIError(json, endpoint) + raise APIError(json) def get_team_match_data(competition, team_num): endpoint = '/api/fetchAllTeamMatchData' @@ -47,7 +47,7 @@ def get_team_match_data(competition, team_num): if json['success']: return json['data'][team_num] else: - raise APIError(json, endpoint) + raise APIError(json) def get_teams_at_competition(competition): endpoint = '/api/fetchAllTeamNicknamesAtCompetition' @@ -61,4 +61,4 @@ def get_teams_at_competition(competition): if json['success']: return list(json['data'].keys()) else: - raise APIError(json, endpoint) \ No newline at end of file + raise APIError(json) \ No newline at end of file