Skip to content
Snippets Groups Projects
Commit 7793eb2c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not print a traceback if the configured application does not exists

parent e5fc1721
No related branches found
No related tags found
No related merge requests found
......@@ -256,10 +256,13 @@ class plugin:
args = conf.split()
app = args[0]
args.append(url)
if os.name == 'posix':
os.spawnvp(os.P_NOWAIT, app, args)
else:
os.spawnv(os.P_NOWAIT, app, args)
try:
if os.name == 'posix':
os.spawnvp(os.P_NOWAIT, app, args)
else:
os.spawnv(os.P_NOWAIT, app, args)
except:
pass
def play_timeout(self, pid):
pidp, r = os.waitpid(pid, os.WNOHANG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment