1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 15:17:28 +00:00
This commit is contained in:
Anson 2021-03-05 10:02:36 -07:00
parent 728f433fe1
commit 2f1eb6dcd6

View File

@ -228,7 +228,7 @@ _Donations can only be made in a chat directly with @simplestockbot_
"changePercent", "changePercent",
) )
if set(keys).issubset(IEXData): if set(keys).issubset(IEXData) and all([IEXData[k] for k in keys]):
try: # Some symbols dont return if the market is open try: # Some symbols dont return if the market is open
IEXData["isUSMarketOpen"] IEXData["isUSMarketOpen"]
@ -257,7 +257,7 @@ _Donations can only be made in a chat directly with @simplestockbot_
else: else:
message += ", the stock hasn't shown any movement today." message += ", the stock hasn't shown any movement today."
else: else:
message = f"The symbol: {symbol} encountered and error. This could be due to " message = f"The symbol: {symbol} encountered and error. This could be due to the symbol not being fully supported by IEX Cloud."
else: else:
message = f"The symbol: {symbol} was not found." message = f"The symbol: {symbol} was not found."