diff options
author | Joel Sherrill <joel@rtems.org> | 2019-02-21 17:52:49 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2019-02-21 17:52:49 -0600 |
commit | 9277878fed1fa2f21bcced64548926251009ced8 (patch) | |
tree | 5b54c6e4ac825675e59b9cfe537c0bc78cabff96 /rtemstoolkit/mailer.py | |
parent | Add patch used by RTEMS 5 epiphany GDB on FreeBSD (diff) | |
download | rtems-tools-9277878fed1fa2f21bcced64548926251009ced8.tar.bz2 |
rtemstoolkit/mailer.py: Check for no --smtp-host arg being provided
Diffstat (limited to 'rtemstoolkit/mailer.py')
-rw-r--r-- | rtemstoolkit/mailer.py | 4 |
1 files changed, 3 insertions, 1 deletions
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:] |