fix BaseException for new error format from API