Yes, you were right. I've fixed it in the last commit.
I couldn't find any tests checking the ValueError, can you give me a hint on how to add it, please?