[gnome-shell] jhbuild wrapper: Don't crash if we can't start the shell



commit b2847fedd30ac1217c8f238a0ebba763c848a824
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Apr 26 16:17:34 2012 -0400

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in
index 4ad7a02..e2c0a74 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()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]