[PATCH] rtemstoolkit/mailer.py: Check for no --smtp-host arg being provided
Joel Sherrill
joel at rtems.org
Thu Feb 21 23:53:28 UTC 2019
---
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:]
--
1.8.3.1
More information about the devel
mailing list