Fix missing % string formatting argument in some calls to raise()