diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-11 13:39:18 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-11 13:39:18 -0500 |
commit | edec683e42126d2aa918010f38ba84e6d83edbea (patch) | |
tree | 0d80149a00f00a137cc50fc368605838a3e9d57c | |
parent | bb81a9edd5cb32cd900cacc51a7e76acfdd1b5b5 (diff) | |
download | korg-helpers-edec683e42126d2aa918010f38ba84e6d83edbea.tar.gz |
Gracefully bail if all patches are missing
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | get-lore-mbox.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/get-lore-mbox.py b/get-lore-mbox.py index a548341..75f813f 100755 --- a/get-lore-mbox.py +++ b/get-lore-mbox.py @@ -381,6 +381,10 @@ def mbox_to_am(mboxfile, config, cmdargs): am_mbx.add(msg) at += 1 + if not len(am_mbx): + logger.info('Did not find any patches to save') + return None + logger.critical('Total patches: %s', len(am_mbx)) if global_trailers and not covertrailers: # Warn that some trailers were sent to the cover letter |