Remove unnecessary try-except block

This commit is contained in:
Iain Lane 2008-09-08 21:13:31 +01:00
parent aead00463c
commit 1a975ab7c0
1 changed files with 3 additions and 6 deletions

View File

@ -169,14 +169,11 @@ class TerminatorTerm (gtk.VBox):
def openurl (self, url):
dbg ('openurl: viewing %s'%url)
try:
try:
dbg ('openurl: calling xdg-open')
subprocess.Popen(["xdg-open", url])
except:
dbg ('openurl: xdg-open failed')
raise
except:
try:
dbg ('openurl: calling url_show')
self.terminator.url_show (url)