diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2005-03-22 13:13:32 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2005-03-22 13:13:32 +0300 |
commit | 7793eb2c98be89d852608680358875fb458ccd7a (patch) | |
tree | 107372edb5636c1d8937c13f094ff600c4957733 | |
parent | e5fc17210b270494292569bab7d9b811f7dd9ac3 (diff) |
do not print a traceback if the configured application does not exists
-rw-r--r-- | plugins/gtkgui/gtkgui.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index e285c1707..686db430f 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -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) |