fix: get rid of old API in pyannote.error