Skip to content

Commit

Permalink
Merge pull request #4295 from hove-io/NAV-3258_fix_500_mutu
Browse files Browse the repository at this point in the history
NAV-3258 fix 500 for mutu
  • Loading branch information
azime authored Aug 19, 2024
2 parents 91934ea + c536810 commit 3f864cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def async_compute_fare(self, response, request_id):
self._futures.append(self._future_manager.create_future(self._do, response, request_id).get_future())

def _do(self, response, request_id):
return response, self._backend.get_pt_journeys_fares(response.journeys, request_id)
if response and response.journeys:
return response, self._backend.get_pt_journeys_fares(response.journeys, request_id)
return response, None

def wait_and_generate(self):
with gevent.iwait(self._futures) as futures:
Expand Down
2 changes: 2 additions & 0 deletions source/jormungandr/jormungandr/scenarios/journey_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ def filter_olympic_site_by_min_pt_duration(
origin_olympic_site = False

for resp in response_list:
if not resp:
continue
for j in resp.journeys:
if not j.sections:
continue
Expand Down

0 comments on commit 3f864cb

Please sign in to comment.