correct wrong error handling in 1D smooth
Merge pull request #223 from PrometheusPi/correctSmooth

patch for wrong error handling in 1D smooth