From: Vincent Le Gallic Date: Fri, 1 Nov 2013 02:11:26 +0000 (+0100) Subject: [saints] échec de .split si y'a pas de saint ce jour-là X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=479dd5f028cd121537b94ce2d87ef56619191a0f;p=today.git [saints] échec de .split si y'a pas de saint ce jour-là --- 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] == "&":