Commit dcdf6479 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

return default None when calling getitem

parent 332ced8a
......@@ -36,7 +36,7 @@ class BuildingGeneric:
self.fetch()
def __getitem__(self, item):
return self._building.get(item)
return self._building.get(item, None)
def __setitem__ (self, key, item):
self._building[key] = item
......
Markdown is supported
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