projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fae859
)
Fix _uuids_cache reset in BugDir._clear_bugs
author
W. Trevor King
<wking@drexel.edu>
Thu, 21 Jan 2010 17:48:07 +0000
(12:48 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 21 Jan 2010 17:48:07 +0000
(12:48 -0500)
libbe/bugdir.py
patch
|
blob
|
history
diff --git
a/libbe/bugdir.py
b/libbe/bugdir.py
index 006f0b82ba4917db72bf7fa00e39cf830d6db6a1..83897164303d15f78db4efe6860ea3964dac7859 100644
(file)
--- a/
libbe/bugdir.py
+++ b/
libbe/bugdir.py
@@
-248,7
+248,8
@@
class BugDir (list, settings_object.SavedSettingsObject):
def _clear_bugs(self):
while len(self) > 0:
self.pop()
- del(self._uuids_cache)
+ if hasattr(self, '_uuids_cache'):
+ del(self._uuids_cache)
self._bug_map_gen()
def _load_bug(self, uuid):