to add the local exception python