Catch FileNotFoundErrors in lutris-wrapper (Closes #2005)

This commit is contained in:
Mathieu Comandon 2019-04-07 23:34:49 -07:00
parent 4d1fac6460
commit 3a7f5d704a

View file

@ -99,7 +99,11 @@ def main():
old_sigint_handler = signal.signal(signal.SIGINT, sig_handler)
log("Running %s" % " ".join(args))
returncode = subprocess.run(args).returncode
try:
returncode = subprocess.run(args).returncode
except FileNotFoundError:
log("Failed to execute process. Check that the file exists")
return
try:
while True:
log("Waiting on children")