diff --git a/pylib/Tools/Launcher/OpenMPI.py b/pylib/Tools/Launcher/OpenMPI.py index 600262614..14cdcc28d 100644 --- a/pylib/Tools/Launcher/OpenMPI.py +++ b/pylib/Tools/Launcher/OpenMPI.py @@ -275,9 +275,9 @@ def execute(self, log, keyvals, testDef): log['numPass'] = numPass log['numSkip'] = numSkip log['numFail'] = numFail - try: - log['np'] = cmds['np'] - except KeyError: - log['np'] = None + try: + log['np'] = cmds['np'] + except KeyError: + log['np'] = None os.chdir(cwd) return