Skip to content

Commit

Permalink
handle KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
yosida95 committed Jun 2, 2014
1 parent 1ac9695 commit 285ccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsmapper/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __get__(self, inst, owner):
if inst is None:
return self.schema

return inst.__dict__[self.name]
return inst.__dict__.get(self.name)

def __set__(self, inst, value):
inst.__dict__[self.name] = value
Expand Down

0 comments on commit 285ccce

Please sign in to comment.