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.
This commit is contained in:
Jasper St. Pierre 2012-04-26 16:17:34 -04:00
parent 8befcb9bba
commit b2847fedd3

View File

@ -111,6 +111,7 @@ def run_shell():
if options.verbose:
print "Starting shell"
shell = None
try:
shell = start_shell()