Remove unnecessary try-except block
This commit is contained in:
parent
aead00463c
commit
1a975ab7c0
|
@ -169,14 +169,11 @@ class TerminatorTerm (gtk.VBox):
|
||||||
|
|
||||||
def openurl (self, url):
|
def openurl (self, url):
|
||||||
dbg ('openurl: viewing %s'%url)
|
dbg ('openurl: viewing %s'%url)
|
||||||
try:
|
|
||||||
try:
|
try:
|
||||||
dbg ('openurl: calling xdg-open')
|
dbg ('openurl: calling xdg-open')
|
||||||
subprocess.Popen(["xdg-open", url])
|
subprocess.Popen(["xdg-open", url])
|
||||||
except:
|
except:
|
||||||
dbg ('openurl: xdg-open failed')
|
dbg ('openurl: xdg-open failed')
|
||||||
raise
|
|
||||||
except:
|
|
||||||
try:
|
try:
|
||||||
dbg ('openurl: calling url_show')
|
dbg ('openurl: calling url_show')
|
||||||
self.terminator.url_show (url)
|
self.terminator.url_show (url)
|
||||||
|
|
Loading…
Reference in New Issue