mirror of
https://github.com/lutris/lutris
synced 2024-10-14 11:42:36 +00:00
Catch FileNotFoundErrors in lutris-wrapper (Closes #2005)
This commit is contained in:
parent
4d1fac6460
commit
3a7f5d704a
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue