fix compatibility with the new behavior of do()
This commit is contained in:
parent
628c63f899
commit
eea0eaa2d5
1 changed files with 3 additions and 3 deletions
|
|
@ -378,7 +378,7 @@ class Boobmsg(ReplApplication):
|
||||||
self.formatter._list_messages = False
|
self.formatter._list_messages = False
|
||||||
|
|
||||||
self.start_format()
|
self.start_format()
|
||||||
for backend, thread in cmd:
|
for thread in cmd:
|
||||||
if not thread:
|
if not thread:
|
||||||
continue
|
continue
|
||||||
if len(arg) > 0:
|
if len(arg) > 0:
|
||||||
|
|
@ -418,7 +418,7 @@ class Boobmsg(ReplApplication):
|
||||||
_id, backend_name = self.parse_id(arg)
|
_id, backend_name = self.parse_id(arg)
|
||||||
cmd = self.do('get_thread', _id, backends=backend_name)
|
cmd = self.do('get_thread', _id, backends=backend_name)
|
||||||
self.start_format()
|
self.start_format()
|
||||||
for backend, thread in cmd:
|
for thread in cmd:
|
||||||
if thread is not None :
|
if thread is not None :
|
||||||
for msg in thread.iter_all_messages():
|
for msg in thread.iter_all_messages():
|
||||||
self.format(msg)
|
self.format(msg)
|
||||||
|
|
@ -439,7 +439,7 @@ class Boobmsg(ReplApplication):
|
||||||
except (IndexError, ValueError):
|
except (IndexError, ValueError):
|
||||||
id, backend_name = self.parse_id(arg)
|
id, backend_name = self.parse_id(arg)
|
||||||
cmd = self.do('get_thread', id, backends=backend_name)
|
cmd = self.do('get_thread', id, backends=backend_name)
|
||||||
for backend, thread in cmd:
|
for thread in cmd:
|
||||||
if thread is not None:
|
if thread is not None:
|
||||||
message = thread.root
|
message = thread.root
|
||||||
if message is not None:
|
if message is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue