Ignoring Invalid Distribution Pencv Python