NR: I really hate SOAP. Don't break if you don't have a LDBSVWS query

This commit is contained in:
Evelyn 2017-05-30 22:17:30 +01:00
parent f9e773fc69
commit 7e19fbe047

View file

@ -278,6 +278,7 @@ class Module(object):
if query: if query:
query = client.service.GetServiceDetailsByRID(rid) query = client.service.GetServiceDetailsByRID(rid)
if schedule: if schedule:
if not query: query = {}
for k,v in { for k,v in {
"trainid": schedule["schedule_segment"]["signalling_id"], "trainid": schedule["schedule_segment"]["signalling_id"],
"operatorCode": schedule["atoc_code"], "operatorCode": schedule["atoc_code"],