changeset 1435:9a165b096ff9

merge
author Roger Haase <crosseyedpenguin@yahoo.com>
date Mon, 16 Jul 2012 08:42:53 -0700
parents 5b83b088da6e (current diff) 6219e911d261 (diff)
children 1122533f76e6 675eb7e1e8a8 7796119a6233
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Mon Jul 16 08:39:40 2012 -0700
+++ b/MoinMoin/user.py	Mon Jul 16 08:42:53 2012 -0700
@@ -322,7 +322,10 @@
                     MAILTO_AUTHOR, SHOW_COMMENTS, RESULTS_PER_PAGE, EDIT_ON_DOUBLECLICK,
                     THEME_NAME, LOCALE, TIMEZONE, SUBSCRIBED_ITEMS, QUICKLINKS,
                    ]:
-            return self.profile[name]
+            try:
+                return self.profile[name]
+            except KeyError:
+                raise AttributeError(name)
         else:
             raise AttributeError(name)