Ward clustering-Too few clusters bug

I have raised a ValueError when too few clusters are formed in Ward Clustering.
The assertion fails on my box too.