Small fix to prevent overwriting ValueError, which is used in multiple places and might cause failures if left as-is.