diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2018-12-18 12:11:39 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2018-12-18 12:11:39 -0500 |
commit | a736afdade8e3cc499b7a6f79ff3441ecbe5f638 (patch) | |
tree | 89a649fb004953fd0c85729f56a4cad06ab5a07c | |
parent | 250d62cabeeece18173d0646e941a5c27dfa6668 (diff) | |
download | korg-helpers-a736afdade8e3cc499b7a6f79ff3441ecbe5f638.tar.gz |
Fix for when there are multiple cc headers
An email should theoretically only have a single cc header, but
sometimes that's no the case.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | git-patchwork-bot.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-patchwork-bot.py b/git-patchwork-bot.py index a68b22e..530c833 100755 --- a/git-patchwork-bot.py +++ b/git-patchwork-bot.py @@ -590,7 +590,10 @@ def notify_submitters(rm, serieslist, refname, config, revs, nomail): if not cchdr: cchdr = headers.get('cc') if cchdr: - ccs = [chunk[1] for chunk in getaddresses([cchdr])] + # Sometimes there are multiple cc headers returned + if not isinstance(cchdr, list): + cchdr = [cchdr] + ccs = [chunk[1] for chunk in getaddresses(cchdr)] if 'onlyifcc' in config: match = None |