Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2005-03-22 13:13:32 +0300
committerYann Leboulanger <asterix@lagaule.org>2005-03-22 13:13:32 +0300
commit7793eb2c98be89d852608680358875fb458ccd7a (patch)
tree107372edb5636c1d8937c13f094ff600c4957733
parente5fc17210b270494292569bab7d9b811f7dd9ac3 (diff)
do not print a traceback if the configured application does not exists
-rw-r--r--plugins/gtkgui/gtkgui.py11
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)