diff roundup/cgi/client.py @ 4801:bff9e4145f70

Fix another instance of a TypeError
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 08 Jul 2013 10:51:03 +0200
parents 3961b2b91568
children e1ffab417c28
line wrap: on
line diff
--- a/roundup/cgi/client.py	Mon Jul 08 10:38:54 2013 +0200
+++ b/roundup/cgi/client.py	Mon Jul 08 10:51:03 2013 +0200
@@ -859,7 +859,11 @@
 
         # see if a template or messages are specified
         template_override = ok_message = error_message = None
-        for key in self.form:
+        try:
+            keys = self.form.keys()
+        except TypeError:
+            keys = ()
+        for key in keys:
             if self.FV_TEMPLATE.match(key):
                 template_override = self.form[key].value
             elif self.FV_OK_MESSAGE.match(key):

Roundup Issue Tracker: http://roundup-tracker.org/