fixed error Decimal.DivisionByZero
This commit is contained in:
@@ -149,11 +149,7 @@ def get_dividends(ticker):
|
||||
nb = len(ticker.dividends)
|
||||
for i in range(nb):
|
||||
d += ticker.dividends[nb - 1 - i]
|
||||
# cas particulier
|
||||
elif ticker.info.get('symbol') == 'VUSA.AS':
|
||||
d = 0.889311 / 1.1 # convertir en EUR
|
||||
elif ticker.info.get('symbol') == 'VJPN.AS':
|
||||
d = 0.56836 / 1.1
|
||||
|
||||
return d
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user