l.s.s.b.LaunchpadScriptFailure(Exception) : class documentation

Part of lp.services.scripts.base View In Hierarchy

Something bad happened and the script is going away.

When you raise LaunchpadScriptFailure inside your main() method, we do two things:

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.

API Documentation for Launchpad, generated by pydoctor at 2018-10-19 00:00:06.