diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-21 12:48:07 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-21 12:48:07 -0500 |
commit | 268cf3260b21f44c14c4b819ef7dc41db8b0c6cf (patch) | |
tree | 2a5525849115cd17fd55a6564db570981b857835 /libbe | |
parent | 7fae8599ba74ecf3d36c9466feec25b3c3f36529 (diff) | |
download | bugseverywhere-268cf3260b21f44c14c4b819ef7dc41db8b0c6cf.tar.gz |
Fix _uuids_cache reset in BugDir._clear_bugs
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/bugdir.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py index 006f0b8..8389716 100644 --- 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): |