🐛 fix(service.py): catch all exceptions when raising ValueError in the search method to provide more informative error message

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-20 11:06:16 -03:00
commit 3b14cdbe9f

View file

@ -37,7 +37,7 @@ class StoreService(Service):
except HTTPError as exc:
try:
raise ValueError(response_text) from exc
except ValueError:
except Exception:
raise ValueError(f"GET request failed: {exc}") from exc
def search(