]> git.sur5r.net Git - u-boot/blobdiff - tools/patman/gitutil.py
patman: Adjust command.Output() to raise an error by default
[u-boot] / tools / patman / gitutil.py
index e088baeb819e3895bcec5277e1f011d493904fbd..bb7c9e08bc2c3a50a4b9a6435e1fa345a9c5f651 100644 (file)
@@ -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"