guanquann / Stocksera

Finance application that provides more than 60 different alternative data to retail investors
MIT License
620 stars 103 forks source link

tasks get_upcoming_events_date | TypeError: 'NoneType' object is not subscriptable #25

Closed christrt9 closed 2 years ago

christrt9 commented 2 years ago

I am running like this sudo docker run --rm stocksera_scheduled_tasks python3 scheduled_tasks/economy/get_upcoming_events_date.py and get this error ? do you have also the same issue

Traceback (most recent call last):
  File "scheduled_tasks/economy/get_upcoming_events_date.py", line 99, in <module>
    main()
  File "scheduled_tasks/economy/get_upcoming_events_date.py", line 82, in main
    rrp_treasury_date = get_next_rrp_treasury_date(datetime.strptime(record_date[0], "%Y-%m-%d") + timedelta(days=1))
TypeError: 'NoneType' object is not subscriptable
guanquann commented 2 years ago

No issues for me. It seems like you need to run scheduled_tasks/economy/get_reverse_repo.py first.

christrt9 commented 2 years ago

thanks :D :)