diff options
author | Alexander Belchenko <bialix@ukr.net> | 2006-07-19 23:53:44 +0300 |
---|---|---|
committer | Alexander Belchenko <bialix@ukr.net> | 2006-07-19 23:53:44 +0300 |
commit | 111c5fdbcf84e60bf0329127fcebdb2cdcc14f1c (patch) | |
tree | 531fa193314ada5585c319687cc348bbd2b1de39 /libbe | |
parent | 138e6a04e8d65e497cb9d64f917b365e06a6a425 (diff) | |
download | bugseverywhere-111c5fdbcf84e60bf0329127fcebdb2cdcc14f1c.tar.gz |
win32: fix crash of 'be show' when bug don't have comments
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/bugdir.py | 5 |
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 |