Part of lp.services.scripts.base View In Hierarchy
When you raise LaunchpadScriptFailure inside your main() method, we do two things:
- log an error with the stringified exception
Releasing the lock happens as a side-effect of the exit.
Note that the sys.exit return value of 1 is defined as LaunchpadScriptFailure.exit_status. If you want a different value subclass LaunchpadScriptFailure and redefine it.