Maybe it's worth leaving the raise in this case - silently returning a different checksum type could lead to weird hard-to-debug issues later.