From bddef6c491191087e9ae1fbb8ef66ca2f087df84 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 2 Oct 2017 21:31:06 +0200 Subject: [PATCH] Fix conn requests without via... --- workers/conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/conn.py b/workers/conn.py index 378ca7e..640390e 100644 --- a/workers/conn.py +++ b/workers/conn.py @@ -136,7 +136,7 @@ def connRequest(frm, to, count = 3, time = datetime.datetime.now(), mode = False yield conn def worker(frm, to, count = 3, time = datetime.datetime.now(pytz.timezone("Europe/Vienna")), mode = False, details = False, json = False, via = None): - conns = list(connRequest(getStation(frm), getStation(to), count, time, mode, details, [getStation(vst) for vst in via])) + conns = list(connRequest(getStation(frm), getStation(to), count, time, mode, details, [getStation(vst) for vst in via] if via else [])) output = """