mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-07-31 18:41:24 +00:00
bug fix
This commit is contained in:
@@ -192,6 +192,11 @@ _Donations can only be made in a chat directly with @simplestockbot_
|
||||
if response.status_code == 200:
|
||||
IEXData = response.json()
|
||||
|
||||
try: # Some symbols dont return if the market is open
|
||||
IEXData["isUSMarketOpen"]
|
||||
except KeyError:
|
||||
IEXData["isUSMarketOpen"] = True
|
||||
|
||||
if (
|
||||
IEXData["isUSMarketOpen"]
|
||||
or (IEXData["extendedChangePercent"] == None)
|
||||
|
Reference in New Issue
Block a user