Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAV-3258 fix 500 for mutu #4295

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading