aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py
index b205cd5..7907235 100644
--- a/compilers.py
+++ b/compilers.py
@@ -406,7 +406,12 @@ int someSymbolHereJustForFun;
cmdlist = self.exe_wrapper + [exename]
else:
cmdlist = exename
- pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ try:
+ pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ except Exception as e:
+ mlog.debug('Could not run: %s (error: %s)\n' % (cmdlist, e))
+ return RunResult(False)
+
(so, se) = pe.communicate()
so = so.decode()
se = se.decode()