From 59b9817bf672a9894c8cc9ad2a7caeba23a6a785 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 9 Aug 2012 22:06:21 -0400 Subject: [PATCH] Fix another bug. --- earwigbot/config/node.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/earwigbot/config/node.py b/earwigbot/config/node.py index 41d23dc..5af4e09 100644 --- a/earwigbot/config/node.py +++ b/earwigbot/config/node.py @@ -42,10 +42,15 @@ class ConfigNode(object): self._data[key] = item def __getattr__(self, key): + if key == "_data": + return super(ConfigNode, self)__getattr__(key) return self._data[key] def __setattr__(self, key, item): - self._data[key] = item + if key == "_data": + super(ConfigNode, self)__setattr__(key, item) + else: + self._data[key] = item def __iter__(self): for key in self._data: