Skip to content

Commit a0b421a

Browse files
committed
Fix encoding issue loading stations file
1 parent 4784a1f commit a0b421a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mtapi/mtapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, key, stations_file, expires_seconds=60, max_trains=10, max_mi
8080

8181
# initialize the stations database
8282
try:
83-
with open(stations_file, 'rb') as f:
83+
with open(stations_file, 'r') as f:
8484
self._stations = json.load(f)
8585
for id in self._stations:
8686
self._stations[id] = self._Station(self._stations[id])

0 commit comments

Comments
 (0)