CLN: elminate testing warning on 2.6, deprecated exception idiom