diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2018-12-13 12:24:21 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2018-12-13 12:24:21 -0500 |
commit | 250d62cabeeece18173d0646e941a5c27dfa6668 (patch) | |
tree | b6fccd11cdc5d6f923fdbea99ac72d59c38e0350 | |
parent | f4eec4bd634daae41b58dfabf30e6883e311c039 (diff) | |
download | korg-helpers-250d62cabeeece18173d0646e941a5c27dfa6668.tar.gz |
Don't send a report when summaryto not set
Fixes traceback for reportless housekeeping.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | git-patchwork-bot.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py index 2fd87fb..a68b22e 100755 --- a/git-patchwork-bot.py +++ b/git-patchwork-bot.py @@ -859,6 +859,14 @@ def housekeeping(rm, settings, nomail, dryrun): if not report: continue + if 'summaryto' not in settings: + logger.info('Report follows') + logger.info('------------------------------') + logger.info(report) + logger.info('------------------------------') + logger.debug('summaryto not set, not sending report') + continue + report += '\n-- \nDeet-doot-dot, I am a bot.\nhttps://korg.wiki.kernel.org/userdoc/pwbot\n' msg = MIMEText(report, _charset='utf-8') |