Skip to content

Commit 6ca0e78

Browse files
authored
Update base_handler.py (#50)
* Update base_handler.py Fix for #29 * Update pyproject.toml bump to 1.1.31
1 parent 09477dc commit 6ca0e78

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "MBTAclient"
7-
version = "1.1.30"
7+
version = "1.1.31"
88
description = "A Python client for interacting with the MBTA API"
99
readme = "README.md"
1010
requires-python = ">=3.12"

src/mbtaclient/handlers/base_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ def _filter_and_sort_trips(
484484
if require_both_stops and (
485485
not departure_stop
486486
or not arrival_stop
487+
or departure_stop.stop_sequence is None # <-- FIX for #29
488+
or arrival_stop.stop_sequence is None # <-- FIX for #29
487489
or departure_stop.stop_sequence > arrival_stop.stop_sequence
488490
):
489491
continue

0 commit comments

Comments
 (0)