mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 06:56:46 +00:00
added warning about #83
This commit is contained in:
parent
465e60e016
commit
e59dbf005c
@ -225,7 +225,8 @@ class IEX_Symbol:
|
||||
try:
|
||||
IEXData = resp[0]
|
||||
except IndexError as e:
|
||||
return f"${symbol.id.upper()} either doesn't exist or pays no dividend."
|
||||
logging.info(e)
|
||||
return f"Getting dividend information for ${symbol.id.upper()} encountered an error. The provider for upcoming dividend information has been having issues recently which has likely caused this error. It is also possible that the stock has no dividend or does not exist."
|
||||
keys = (
|
||||
"amount",
|
||||
"currency",
|
||||
@ -266,7 +267,7 @@ class IEX_Symbol:
|
||||
+ f"\n\nThe dividend was declared on {declared} and the ex-dividend date is {ex}"
|
||||
)
|
||||
|
||||
return f"${symbol.id.upper()} either doesn't exist or pays no dividend."
|
||||
return f"Getting dividend information for ${symbol.id.upper()} encountered an error. The provider for upcoming dividend information has been having issues recently which has likely caused this error. It is also possible that the stock has no dividend or does not exist."
|
||||
|
||||
def news_reply(self, symbol: Stock) -> str:
|
||||
"""Gets most recent, english, non-paywalled news
|
||||
|
Loading…
x
Reference in New Issue
Block a user