nrtrains now doesn't break if a platform isn't known
This commit is contained in:
parent
8ad424c906
commit
8d74905481
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Module(object):
|
|||
# "via": t["destination"][0][0]["via"],
|
||||
""
|
||||
"via": "",
|
||||
"platform": t["platform"]
|
||||
"platform": "?" if not "platform" in t else t["platform"]
|
||||
})
|
||||
|
||||
trains = sorted(trains, key=lambda t: int(t["scheduled"].replace(":", "")))
|
||||
|
|
Loading…
Reference in a new issue