diff options
author | Simon Glass | 2016-07-25 18:59:00 -0600 |
---|---|---|
committer | Simon Glass | 2016-09-18 21:04:38 -0600 |
commit | 785f1548a9e74cf4796c96e6f32ed67b25f79b81 (patch) | |
tree | 33e5bf6ef78a66caf34372759283f3affb6a0f86 /tools/patman/gitutil.py | |
parent | 49afb37988a397ce215e99563e0ab5d2970c6a39 (diff) |
patman: Adjust command.Output() to raise an error by default
It is more useful to have this method raise an error when something goes
wrong. Make this the default and adjust the few callers that don't want to
use it this way.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index e088baeb819..bb7c9e08bc2 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -391,7 +391,8 @@ def EmailPatches(series, cover_fname, args, dry_run, raise_on_error, cc_fname, """ to = BuildEmailList(series.get('to'), '--to', alias, raise_on_error) if not to: - git_config_to = command.Output('git', 'config', 'sendemail.to') + git_config_to = command.Output('git', 'config', 'sendemail.to', + raise_on_error=False) if not git_config_to: print ("No recipient.\n" "Please add something like this to a commit\n" |