Commit 4f485b9b authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in __getitem__ in PropertyDict

parent 11dbcdf0
......@@ -861,6 +861,7 @@ class PropertyDict(dict):
if self.get_func != None:
val = self.get_func(self.g, key)
dict.__setitem__(self, key, val)
return val
raise KeyError("Property dict cannot be gotten")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment