A bit of pep8 and small typo fix.

This commit is contained in:
Elrond 2013-05-19 01:14:46 +02:00
parent 1b6a2b85e1
commit d6c3375a78
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ def check_form(form):
if not form.validate():
_log.error("form validation failed for form %r", form)
for f in form:
if len(f.error):
if len(f.errors):
_log.error("Errors for %s: %r", f.name, f.errors)
raise BadRequest()
dump = []