--- 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)