changeset 2169:8aad85519f76

Fix error occuring when user has no subscribed events.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Tue, 19 Jun 2007 20:52:19 +0200
parents f10336f74a6e
children 3cfc01315d3a
files MoinMoin/userform.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userform.py	Mon Jun 18 17:28:14 2007 +0200
+++ b/MoinMoin/userform.py	Tue Jun 19 20:52:19 2007 +0200
@@ -333,7 +333,7 @@
         
         # subscription to various events
         available = events.get_subscribable_events()
-        theuser.subscribed_events = [ev for ev in form.get('events')]
+        theuser.subscribed_events = [ev for ev in form.get('events', [])]
 
         # save data
         theuser.save()