Use a RuntimeError instead of a warning to avoid raising a ValueError randomly later