title: scipy.optimize curve fitting
body: <p>I was just trying to catch an ValuError thrown by the scipy.optimize.curve_fit function, but I realized it was not recognized as a valid exception.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>     from scipy.optimize import curve_fit
  
      ksi=( (185/((xdata_1/420)**2 + (420/xdata_1)**2 + 90 )) + (27/((xdata_1/800)**4 + (800/xdata_1)**4 + 5.50)) + (0.005/((xdata_1/2200)**2 + (2200/xdata_1)**2 - 1.95)) + (0.012/((xdata_1/180000)**2 + (180000/xdata_1)**2 -1.8))+ (0.01/((xdata_1/97000)**2 + (97000/xdata_1)**2 -1.95)) + (0.03/((xdata_1/250000)**2 + (250000/xdata_1)**2))  )
  
       def power(xdata_1,cc,dd,gg):
           global ksi
           return cc*(xdata_1**(dd))*(10**(-1.572*gg*(ksi)))
  </code></pre>
  
  <p>This is the full warning I get :</p>
  
  <p>ValueError: operands could not be broadcast together with shapes (455,) (1772,)</p>
  
  <p>How do I solve this problem ? </p>