Exception when using shipping weight as variant attribute (#940)