aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorAlexander Belchenko <bialix@ukr.net>2006-07-19 23:53:44 +0300
committerAlexander Belchenko <bialix@ukr.net>2006-07-19 23:53:44 +0300
commit111c5fdbcf84e60bf0329127fcebdb2cdcc14f1c (patch)
tree531fa193314ada5585c319687cc348bbd2b1de39 /libbe
parent138e6a04e8d65e497cb9d64f917b365e06a6a425 (diff)
downloadbugseverywhere-111c5fdbcf84e60bf0329127fcebdb2cdcc14f1c.tar.gz
win32: fix crash of 'be show' when bug don't have comments
Diffstat (limited to 'libbe')
-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