selectors.py
branchstable
changeset 3346 b1fd9d4ef579
parent 3345 10ad3869fc92
child 3350 fa77640a9155
--- a/selectors.py	Mon Sep 21 18:00:28 2009 +0200
+++ b/selectors.py	Mon Sep 21 18:02:21 2009 +0200
@@ -611,14 +611,14 @@
                 etype = req.form['etype']
             except KeyError:
                 return 0
-        else:
-            # only check this is a known type if etype comes from req.form,
-            # else we want the error to propagate
-            try:
-                etype = cls.vreg.case_insensitive_etypes[etype.lower()]
-                req.form['etype'] = etype
-            except KeyError:
-                return 0
+            else:
+                # only check this is a known type if etype comes from req.form,
+                # else we want the error to propagate
+                try:
+                    etype = cls.vreg.case_insensitive_etypes[etype.lower()]
+                    req.form['etype'] = etype
+                except KeyError:
+                    return 0
         return self.score_class(cls.vreg['etypes'].etype_class(etype), req)