Never mind my previous comment. I missed the fact that Line 61 returns ``None`` when ``priority`` is an invalid string.