fix BaseException deprecated message