quixote/form form.py,1.21,1.22
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote/form
In directory hewson:/tmp/cvs-serv1998
Modified Files:
form.py
Log Message:
Don't call str() on exception value (I'm not 100% sure this is the right
fix though).
Index: form.py
===================================================================
RCS file: /home/cvs/quixote/form/form.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- form.py 14 Oct 2002 23:18:54 -0000 1.21
+++ form.py 15 Oct 2002 19:18:43 -0000 1.22
@@ -195,7 +195,7 @@
try:
val = widget.parse(request)
except FormValueError, exc:
- self.error[widget.name] = str(exc)
+ self.error[widget.name] = exc[0]
else:
values[widget.name] = val