this is Python, why would you ever expect a function to not fail?

if it does fail, it's because of a bug that should be fixed.