Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StopIteration when calling covid.get_status_by_country_name("US") #8

Closed
hellosaumil opened this issue Mar 22, 2020 · 4 comments
Closed

StopIteration when calling covid.get_status_by_country_name("US") #8

hellosaumil opened this issue Mar 22, 2020 · 4 comments

Comments

@hellosaumil
Copy link
Contributor

@hellosaumil hellosaumil commented Mar 22, 2020

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
@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 22, 2020

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

@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 22, 2020

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

@ahmednafies

This comment has been minimized.

Copy link
Owner

@ahmednafies ahmednafies commented Mar 22, 2020

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

@hellosaumil

This comment has been minimized.

Copy link
Contributor Author

@hellosaumil hellosaumil commented Mar 22, 2020

Works, thank you! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.