From 17a9cb9e6184d9a285bc1ca8349d521d47bc655d Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 21 May 2021 15:43:22 -0400 Subject: Return early if no messages retrieved If we haven't been able to retrieve any messages, then exit early. Signed-off-by: Konstantin Ryabitsev --- b4/mbox.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3