do not print a traceback if the configured application does not exists
This commit is contained in:
parent
e5fc17210b
commit
7793eb2c98
|
@ -256,10 +256,13 @@ class plugin:
|
||||||
args = conf.split()
|
args = conf.split()
|
||||||
app = args[0]
|
app = args[0]
|
||||||
args.append(url)
|
args.append(url)
|
||||||
if os.name == 'posix':
|
try:
|
||||||
os.spawnvp(os.P_NOWAIT, app, args)
|
if os.name == 'posix':
|
||||||
else:
|
os.spawnvp(os.P_NOWAIT, app, args)
|
||||||
os.spawnv(os.P_NOWAIT, app, args)
|
else:
|
||||||
|
os.spawnv(os.P_NOWAIT, app, args)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def play_timeout(self, pid):
|
def play_timeout(self, pid):
|
||||||
pidp, r = os.waitpid(pid, os.WNOHANG)
|
pidp, r = os.waitpid(pid, os.WNOHANG)
|
||||||
|
|
Loading…
Reference in New Issue