[PATCH] rtemstoolkit/mailer.py: Check for no --smtp-host arg being provided

Chris Johns chrisj at rtems.org
Fri Feb 22 00:46:50 UTC 2019


Looks good. Ok to push.

Do you think the tools version in the RSB needs to be updated?

Chris

On 22/2/19 10:53 am, Joel Sherrill wrote:
> ---
>  rtemstoolkit/mailer.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/rtemstoolkit/mailer.py b/rtemstoolkit/mailer.py
> index 241ee1c..f8f813c 100644
> --- a/rtemstoolkit/mailer.py
> +++ b/rtemstoolkit/mailer.py
> @@ -67,7 +67,9 @@ class mail:
>  
>      def _get_arg(self, arg):
>          if self._args_are_macros():
> -            value = self.opts.find_arg(arg)[1]
> +            value = self.opts.find_arg(arg)
> +            if value is not None:
> +                value = self.opts.find_arg(arg)[1]
>          else:
>              if arg.startswith('--'):
>                  arg = arg[2:]
> 



More information about the devel mailing list