aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-21 15:43:22 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-05-21 15:43:22 -0400
commit17a9cb9e6184d9a285bc1ca8349d521d47bc655d (patch)
treef0faca1d067fe702707e5e613b859286dd1b6d4a
parent3ceda2207e9e8b2ab1bc868befd870a8bfc483a0 (diff)
downloadb4-17a9cb9e6184d9a285bc1ca8349d521d47bc655d.tar.gz
Return early if no messages retrieved
If we haven't been able to retrieve any messages, then exit early. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/mbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 5a1670c..a4b005f 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -597,6 +597,8 @@ def main(cmdargs):
cmdargs.nocache = True
msgid, msgs = get_msgs(cmdargs)
+ if not msgs:
+ return
if len(msgs) and cmdargs.checknewer:
msgs = get_extra_series(msgs, direction=1)