except
This commit is contained in:
parent
8f18c88125
commit
713410827f
3
main.py
3
main.py
|
@ -15,6 +15,7 @@ def get_price(company_code):
|
|||
return blind_now.text
|
||||
|
||||
def postStatus():
|
||||
try:
|
||||
company_code = '005930'
|
||||
price = get_price(company_code).replace(",", "")
|
||||
status = ""
|
||||
|
@ -32,6 +33,8 @@ def postStatus():
|
|||
}
|
||||
res = requests.post(f"https://{os.getenv('INSTANCE')}/api/notes/create", json=data)
|
||||
print(res.status_code, res.json())
|
||||
except:
|
||||
print("Error...")
|
||||
|
||||
if __name__ == "__main__":
|
||||
sched = BlockingScheduler()
|
||||
|
|
Loading…
Reference in a new issue