nf1s/covid

StopIteration when calling covid.get_status_by_country_name("US")

hellosaumil opened this issue · 4 comments

Getting the following error when trying to call get_status_by_country_name on "US" works for other countries!

>>> covid.get_status_by_country_name("US")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../.conda/envs/py36/lib/python3.6/site-packages/covid/__init_
_.py", line 281, in get_status_by_country_name
    country = next(country)
StopIteration
nf1s commented

Yeah, I just checked, and it happens only with the "US" as you said.
I will investigate it.

nf1s commented

I created a pull request. #9
this will resolve the issue

nf1s commented

Please upgrade you covid package to the latest release "1.4.2"

Works, thank you! 🎉