aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
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