translate_priority can return None... which may wreak havoc. Investigate.