mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +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:
|
if response.status_code == 200:
|
||||||
IEXData = response.json()
|
IEXData = response.json()
|
||||||
|
|
||||||
|
try: # Some symbols dont return if the market is open
|
||||||
|
IEXData["isUSMarketOpen"]
|
||||||
|
except KeyError:
|
||||||
|
IEXData["isUSMarketOpen"] = True
|
||||||
|
|
||||||
if (
|
if (
|
||||||
IEXData["isUSMarketOpen"]
|
IEXData["isUSMarketOpen"]
|
||||||
or (IEXData["extendedChangePercent"] == None)
|
or (IEXData["extendedChangePercent"] == None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user