Skip to content

Commit

Permalink
found one more weird case where obj became None
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Groszer committed Mar 29, 2009
1 parent ee04c7b commit 1653dbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/z3c/form/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def toFieldValue(self, value):
except AttributeError:
obj = self.createObject(value)

if obj is None:
#if still None create one, otherwise following will burp
obj = self.createObject(value)

obj = self.field.schema(obj)

names = []
Expand Down

0 comments on commit 1653dbc

Please sign in to comment.