do not crash if the thread is not found
This commit is contained in:
parent
3e219bf1cb
commit
9f3b493a71
1 changed files with 5 additions and 1 deletions
|
|
@ -299,6 +299,8 @@ class Boobmsg(ReplApplication):
|
|||
self.formatter._list_messages = False
|
||||
|
||||
for backend, thread in cmd:
|
||||
if not thread:
|
||||
continue
|
||||
if len(arg) > 0:
|
||||
for m in thread.iter_all_messages():
|
||||
if not m.backend:
|
||||
|
|
@ -318,7 +320,9 @@ class Boobmsg(ReplApplication):
|
|||
|
||||
cmd = self.do('iter_threads')
|
||||
for backend, thread in cmd:
|
||||
t = backend.get_thread(thread.id)
|
||||
if not thread:
|
||||
continue
|
||||
t = backend.fillobj(thread, None)
|
||||
for msg in t.iter_all_messages():
|
||||
self.format(msg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue