aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2006-08-11 12:07:10 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2006-08-11 12:07:10 -0400
commit99993f498f2130b912f3418a72812d2bbacab68e (patch)
tree4f601151b48c994318cb75f112bf7cb93a9a6483 /libbe/bugdir.py
parent16acc74181767343289c729f668fb34d50212441 (diff)
parentbb87321ddc66ca8c7e8f42007fa2f678f93988a6 (diff)
downloadbugseverywhere-99993f498f2130b912f3418a72812d2bbacab68e.tar.gz
Merge changes from Belchenko
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 414b47e..4664c25 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -287,8 +287,11 @@ class Bug(object):
return Comment(uuid, self)
def iter_comment_ids(self):
+ path = self.get_path("comments")
+ if not os.path.isdir(path):
+ return
try:
- for uuid in os.listdir(self.get_path("comments")):
+ for uuid in os.listdir(path):
if (uuid.startswith('.')):
continue
yield uuid