catch exception for no weigth input