aboutsummaryrefslogtreecommitdiff
path: root/b4/mbox.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-20 10:40:39 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-20 10:40:39 -0400
commit01d334f81b8b3d29c034d559f93339a274efb199 (patch)
tree9c34f19b583a287ba7e38f26630659aa3955ebda /b4/mbox.py
parentcc164830f42a65bd962642961bc5368e4ace6cd5 (diff)
downloadb4-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 850558f..724e956 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -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 == '-':