Could you try reverting this and add a print statement to see what `version_str` is when it fails? I'd think if it's failing then we should fix the regex instead (if it's broken), or find out what's passing `version_from_string` a bad argument, and maybe add a more specific condition/comment.