Skip to content

Commit

Permalink
Remove unneeded exception (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Aug 13, 2021
2 parents 6878cd0 + a4362bb commit fa85ef6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions openei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ class NotAuthorized(Exception):
"""Exception for invalid API key."""


class PlanMismatch(Exception):
"""Exception for rate plans do not match what was requested."""


class APIError(Exception):
"""Exception for API errors."""

Expand Down Expand Up @@ -90,9 +86,6 @@ def update(self) -> None:

if "items" in result.json().keys():
data = result.json()["items"][0]
if data["label"] != self._plan:
raise PlanMismatch

self._data = data

@property
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

PROJECT_DIR = Path(__file__).parent.resolve()
README_FILE = PROJECT_DIR / "README.md"
VERSION = "0.1.0"
VERSION = "0.1.1"


setup(
Expand Down

0 comments on commit fa85ef6

Please sign in to comment.