From b2847fedd30ac1217c8f238a0ebba763c848a824 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 26 Apr 2012 16:17:34 -0400 Subject: [PATCH] jhbuild wrapper: Don't crash if we can't start the shell If start_shell throws an exception for whatever reason, the finally handler will run before shell has been set, leading to a "referencing an undefined local variable" error. --- src/gnome-shell-jhbuild.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in index 4ad7a02e9..e2c0a745c 100755 --- a/src/gnome-shell-jhbuild.in +++ b/src/gnome-shell-jhbuild.in @@ -111,6 +111,7 @@ def run_shell(): if options.verbose: print "Starting shell" + shell = None try: shell = start_shell()