From 2f1eb6dcd60a6817c42358c20028a9324206b741 Mon Sep 17 00:00:00 2001 From: Anson Date: Fri, 5 Mar 2021 10:02:36 -0700 Subject: [PATCH] Close #51 #52 --- functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.py b/functions.py index 425aee9..8ce1e2b 100644 --- a/functions.py +++ b/functions.py @@ -228,7 +228,7 @@ _Donations can only be made in a chat directly with @simplestockbot_ "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 IEXData["isUSMarketOpen"] @@ -257,7 +257,7 @@ _Donations can only be made in a chat directly with @simplestockbot_ else: message += ", the stock hasn't shown any movement today." 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: message = f"The symbol: {symbol} was not found."