aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-05 19:30:32 +0200
committerAlban Gruin2017-09-05 19:30:32 +0200
commite1899a300bca73bce70591ccd9a5386bb5152aa9 (patch)
tree5f316c4496f2729b8bffd5b1892cb7be5ae9f927 /feeds.py
parent3363152e79991c9a6d86da819b758dacab33b16a (diff)
Ne plante pas si jamais une variable n’a pas d’équivalent icalendar
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index 913e337..f3ccaf3 100644
--- a/feeds.py
+++ b/feeds.py
@@ -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)