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

Joel Sherrill joel at rtems.org
Mon Feb 25 23:43:19 UTC 2019


Module:    rtems-tools
Branch:    master
Commit:    9277878fed1fa2f21bcced64548926251009ced8
Changeset: http://git.rtems.org/rtems-tools/commit/?id=9277878fed1fa2f21bcced64548926251009ced8

Author:    Joel Sherrill <joel at rtems.org>
Date:      Thu Feb 21 17:52:49 2019 -0600

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

---

 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 vc mailing list