From 1a975ab7c0c736fdd29ed86d1231b3b6e10e64dc Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 8 Sep 2008 21:13:31 +0100 Subject: [PATCH] Remove unnecessary try-except block --- terminatorlib/terminatorterm.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index f8de9f63..7786104c 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -170,13 +170,10 @@ 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 + dbg ('openurl: calling xdg-open') + subprocess.Popen(["xdg-open", url]) except: + dbg ('openurl: xdg-open failed') try: dbg ('openurl: calling url_show') self.terminator.url_show (url)