diff --git a/pyoscar/__init__.py b/pyoscar/__init__.py index e9bd31a..e1d427f 100644 --- a/pyoscar/__init__.py +++ b/pyoscar/__init__.py @@ -145,6 +145,8 @@ def get_stations(self, program: str = None, country: str = None, LOGGER.debug(f'Request: {response.url}') LOGGER.debug(f'Response: {response.status_code}') + response.raise_for_status() + return response.json() def get_contact(self, country: str, surname: str,