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:
parent
8befcb9bba
commit
b2847fedd3
@ -111,6 +111,7 @@ def run_shell():
|
|||||||
if options.verbose:
|
if options.verbose:
|
||||||
print "Starting shell"
|
print "Starting shell"
|
||||||
|
|
||||||
|
shell = None
|
||||||
try:
|
try:
|
||||||
shell = start_shell()
|
shell = start_shell()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user