mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 06:56:46 +00:00
bug fix
This commit is contained in:
parent
a5505ab30c
commit
e6438ab89d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user