Fidelity Special Values Dividend Yield - 1.88%

--> -->
 
 
<type 'exceptions.ValueError'>
Python 2.6.6: /usr/bin/python
Sat Apr 20 22:13:29 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/dividenddata/public_html/dividend-yield.py in ()
  572     tableOptions()
  573     if epic not in noYieldHistoryEpics: 
  574         graphPanel()
  575     if not delisted:
  576         currentYieldDetailsPanel()
graphPanel = <function graphPanel>
 /home/dividenddata/public_html/dividend-yield.py in graphPanel()
  150 def graphPanel():
  151 
  152     svgs = yieldChartsSVG.getSVG(epic)
  153    
  154     global svgArr
svgs undefined, global yieldChartsSVG = <module 'yieldChartsSVG' from '/home/dividenddata/public_html/yieldChartsSVG.pyc'>, yieldChartsSVG.getSVG = <function getSVG>, global epic = 'FSV'
 /home/dividenddata/public_html/yieldChartsSVG.py in getSVG(epic='FSV')
   37 
   38 def getSVG(epic):
   39     yields = getYields(epic)
   40     if len(yields) == 0:
   41         return ""
yields undefined, global getYields = <function getYields>, epic = 'FSV'
 /home/dividenddata/public_html/yieldChartsSVG.py in getYields(epic='FSV')
  299         for date in dateRange:
  300             if date in prices and date in ftseYields:
  301                 yd = getYield(x[1], prices[date], x[3], usdMap[date], eurMap[date], gelMap[date])
  302                 dateCompts = date.split('-')
  303                 day = dateCompts[0]
yd = '2.01', global getYield = <function getYield>, x = [['01-Nov-18'], ['1.85', '3.15'], [], []], prices = {'01-Apr-03': '205', '01-Apr-04': '347', '01-Apr-05': '411.5', '01-Apr-08': '524', '01-Apr-09': '375.5', '01-Apr-10': '559.5', '01-Apr-11': '574', '01-Apr-14': '933.5', '01-Apr-15': '902.5', '01-Apr-16': '185', ...}, date = '03-Dec-18', usdMap = {'01-Apr-02': '0.701705', '01-Apr-03': '0.631672', '01-Apr-04': '0.54739', '01-Apr-05': '0.529325', '01-Apr-06': '0.57554', '01-Apr-07': '0.508017', '01-Apr-08': '0.503575', '01-Apr-09': '0.699325', '01-Apr-10': '0.6582', '01-Apr-11': '0.62278', ...}, eurMap = {'01-Apr-02': '0.612413', '01-Apr-03': '0.690102', '01-Apr-04': '0.666311', '01-Apr-05': '0.687566', '01-Apr-06': '0.697209', '01-Apr-07': '0.678939', '01-Apr-08': '0.7958', '01-Apr-09': '0.92734', '01-Apr-10': '0.89047', '01-Apr-11': '0.883777', ...}, gelMap = {'01-Apr-02': '0.001', '01-Apr-03': '0.001', '01-Apr-04': '0.001', '01-Apr-05': '0.001', '01-Apr-06': '0.001', '01-Apr-07': '0.001', '01-Apr-08': '0.001', '01-Apr-09': '0.001', '01-Apr-10': '0.001', '01-Apr-11': '0.001', ...}
 /home/dividenddata/public_html/yieldChartsSVG.py in getYield(divArr=['1.85', '3.15'], price='25204-Dec-18', currency=[], usdRate='0.78516', eurRate='0.89138', gelRate='0.29248')
  345     
  346     totalDiv = sum(divsAsFloats)
  347     return str('%.2f' % ((totalDiv/float(price)) * 100))
  348 
  349 
builtin str = <type 'str'>, totalDiv = 5.0, builtin float = <type 'float'>, price = '25204-Dec-18'

<type 'exceptions.ValueError'>: invalid literal for float(): 25204-Dec-18
      args = ('invalid literal for float(): 25204-Dec-18',)
      message = 'invalid literal for float(): 25204-Dec-18'