Skip to content

Commit

Permalink
Remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-flowers-airbnb committed Jun 12, 2024
1 parent e0d3187 commit b053bf7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gspread/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ def __init__(self, response: Response):
self.error: Mapping[str, Any] = response.json()["error"]
self.code: int = self.error["code"]

def _extract_error(
self, response: Response
) -> Optional[Dict[str, Union[int, str]]]:
try:
errors = response.json()
return dict(errors["error"])
except (AttributeError, KeyError, ValueError):
return None

def __str__(self) -> str:
return "{}: [{}]: {}".format(
self.__class__.__name__, self.code, self.error["message"]
Expand Down

0 comments on commit b053bf7

Please sign in to comment.