🐛 fix(service.py): catch all exceptions when raising ValueError in the search method to provide more informative error message
This commit is contained in:
parent
b7aa3274f8
commit
3b14cdbe9f
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class StoreService(Service):
|
||||||
except HTTPError as exc:
|
except HTTPError as exc:
|
||||||
try:
|
try:
|
||||||
raise ValueError(response_text) from exc
|
raise ValueError(response_text) from exc
|
||||||
except ValueError:
|
except Exception:
|
||||||
raise ValueError(f"GET request failed: {exc}") from exc
|
raise ValueError(f"GET request failed: {exc}") from exc
|
||||||
|
|
||||||
def search(
|
def search(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue