[lnst] Fix "Raising a new style class which doesn't inherit from BaseException" error