From: Florian Schweikert Date: Mon, 26 Sep 2011 12:12:22 +0000 (+0200) Subject: [FIX] iTip crashes if no station given X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=f11160c89a1ea8c6264112aac1bf923ee456ffe2;p=pywienerlinien [FIX] iTip crashes if no station given --- diff --git a/iTip.py b/iTip.py index 3e327c1..a0941ea 100644 --- a/iTip.py +++ b/iTip.py @@ -115,7 +115,10 @@ if __name__ == '__main__': l = args.l.upper() else: l = None - s = args.s.decode('UTF-8') + if args.s: + s = args.s.decode('UTF-8') + else: + s = '' if l and l in lines: stations = itip.get_stations(l)