From af74b62e967dc5784545d78a09fd71c05d3e9d96 Mon Sep 17 00:00:00 2001 From: firstof9 Date: Fri, 13 Aug 2021 12:14:01 -0700 Subject: [PATCH 1/2] Remove unneeded exception --- openei/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/openei/__init__.py b/openei/__init__.py index c199918..f2dc717 100644 --- a/openei/__init__.py +++ b/openei/__init__.py @@ -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.""" @@ -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 From a4362bb44fd3fb780458dc317f839e6d8c4552ea Mon Sep 17 00:00:00 2001 From: firstof9 Date: Fri, 13 Aug 2021 12:15:10 -0700 Subject: [PATCH 2/2] bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e2e666f..1fc9a69 100644 --- a/setup.py +++ b/setup.py @@ -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(