You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: planet/specs.py
+24-12Lines changed: 24 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@
38
38
39
39
LOGGER=logging.getLogger(__name__)
40
40
41
+
41
42
classFetchBundlesSpecError(Exception):
42
43
"""Custom exception for errors fetching the product bundles spec."""
43
44
pass
@@ -56,18 +57,22 @@ def __getitem__(self, key):
56
57
response=httpx.get(bundles_spec_url)
57
58
response.raise_for_status()
58
59
break
59
-
except:
60
+
except:# noqa: E722
60
61
ifattempt==retries:
61
-
raiseFetchBundlesSpecError(f"Unable to fetch product bundles spec from API to perform client side validation on item types and product bundles. Please retry!") fromNone
62
+
raiseFetchBundlesSpecError(
63
+
"Unable to fetch product bundles spec from API to perform client side validation on item types and product bundles. Please retry!"
0 commit comments