From 479dd5f028cd121537b94ce2d87ef56619191a0f Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 1 Nov 2013 03:11:26 +0100 Subject: [PATCH] =?utf8?q?[saints]=20=C3=A9chec=20de=20.split=20si=20y'a?= =?utf8?q?=20pas=20de=20saint=20ce=20jour-l=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- today.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/today.py b/today.py index c3f3629..6d28b1f 100755 --- a/today.py +++ b/today.py @@ -159,6 +159,8 @@ def get_birthdays(*search): def _parse_saint(s): """Renvoie la liste des fêtes contenue dans un jour""" l = s.split(",") + if l == [""]: + l = [] ll = [] for st in l: if st[0] == "&": -- 2.39.2