Skip to content

Commit c0ba9a6

Browse files
authored
Merge pull request #29 from HSLdevcom/DT-6190
Do not return None as a value for the shortname
2 parents e3bec85 + 4d994ef commit c0ba9a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def parse_short_name(feed, trip_id, route_id, otp_data):
1414
feed_scoped_id = feed + ":" + route_id
1515
if feed_scoped_id not in otp_data:
1616
return ""
17-
return otp_data[feed + ":" + route_id]["shortName"]
17+
return otp_data[feed_scoped_id]["shortName"] or ""
1818

1919
def parse_color(feed, trip_id, route_id, otp_data):
2020
if otp_data == None:

0 commit comments

Comments
 (0)