summaryrefslogtreecommitdiff
path: root/rtemstoolkit
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2019-02-21 17:52:49 -0600
committerJoel Sherrill <joel@rtems.org>2019-02-21 17:52:49 -0600
commit9277878fed1fa2f21bcced64548926251009ced8 (patch)
tree5b54c6e4ac825675e59b9cfe537c0bc78cabff96 /rtemstoolkit
parent35e6930f120e841b39d2c1196f02b83c1b4b7a24 (diff)
rtemstoolkit/mailer.py: Check for no --smtp-host arg being provided
Diffstat (limited to 'rtemstoolkit')
-rw-r--r--rtemstoolkit/mailer.py4
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:]