Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a more helpful error message when a child field cannot be found.

  • Loading branch information...
commit daef745c2de633b19fad4feb322b97faf89300e7 1 parent 0909fed
@emgee emgee authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  formish/forms.py
View
2  formish/forms.py
@@ -564,6 +564,8 @@ def get_field(self, name):
return field
else:
return field.get_field(''.join(segments[1:]))
+ raise KeyError('%s %r has no field %r' % (self.__class__.__name__,
+ self.name, segments[0]))
def __getitem__(self, key):
Please sign in to comment.
Something went wrong with that request. Please try again.