diff options
author | Alban Gruin | 2017-09-05 19:30:32 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-05 19:30:32 +0200 |
commit | e1899a300bca73bce70591ccd9a5386bb5152aa9 (patch) | |
tree | 5f316c4496f2729b8bffd5b1892cb7be5ae9f927 | |
parent | 3363152e79991c9a6d86da819b758dacab33b16a (diff) |
Ne plante pas si jamais une variable n’a pas d’équivalent icalendar
-rw-r--r-- | feeds.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,4 +39,5 @@ class IcalFeed(SyndicationFeed): for item in items: event = Event() for key, value in item.items(): - event.add(__ical_names[key], value) + if key in __ical_names: + event.add(__ical_names[key], value) |