diff --git a/pyproject.toml b/pyproject.toml index 9c184f3..ede476f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "MBTAclient" -version = "1.1.30" +version = "1.1.31" description = "A Python client for interacting with the MBTA API" readme = "README.md" requires-python = ">=3.12" diff --git a/src/mbtaclient/handlers/base_handler.py b/src/mbtaclient/handlers/base_handler.py index ddacea7..71fcd49 100644 --- a/src/mbtaclient/handlers/base_handler.py +++ b/src/mbtaclient/handlers/base_handler.py @@ -484,6 +484,8 @@ def _filter_and_sort_trips( if require_both_stops and ( not departure_stop or not arrival_stop + or departure_stop.stop_sequence is None # <-- FIX for #29 + or arrival_stop.stop_sequence is None # <-- FIX for #29 or departure_stop.stop_sequence > arrival_stop.stop_sequence ): continue