diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-20 10:40:39 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-05-20 10:40:39 -0400 |
commit | 01d334f81b8b3d29c034d559f93339a274efb199 (patch) | |
tree | 9c34f19b583a287ba7e38f26630659aa3955ebda /b4/mbox.py | |
parent | cc164830f42a65bd962642961bc5368e4ace6cd5 (diff) | |
download | b4-01d334f81b8b3d29c034d559f93339a274efb199.tar.gz |
Fix a crash on incomplete/missing threads
Properly handle situation where we can get a None as well as an empty
message list.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/mbox.py')
-rw-r--r-- | b4/mbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -501,7 +501,7 @@ def main(cmdargs): sys.exit(1) msgs = b4.get_pi_thread_by_msgid(msgid, useproject=cmdargs.useproject, nocache=cmdargs.nocache) - if not len(msgs): + if not msgs: return else: if cmdargs.localmbox == '-': |