diff --git a/locomotive/api/oui_v3.py b/locomotive/api/oui_v3.py index 3416ac5..4c6b6de 100644 --- a/locomotive/api/oui_v3.py +++ b/locomotive/api/oui_v3.py @@ -60,7 +60,7 @@ def request(self, json: dict) -> Any: self.logger.debug(res.request.body) self.logger.debug(res.content) - if res.status_code == 404: + if res.status_code == 404 or "error" in res.json(): # {"code":"ERR-0102","label":"empty travel result"} return {"journeys": []}