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

Find by PinCode is working #3

Closed
sonu1125 opened this issue May 4, 2021 · 2 comments
Closed

Find by PinCode is working #3

sonu1125 opened this issue May 4, 2021 · 2 comments

Comments

@sonu1125
Copy link

sonu1125 commented May 4, 2021

File "t.py", line 8, in
available_centers = cowin.get_availability_by_pincode(pin_code, date, min_age_limit)
File "C:\Users\byashwan\Anaconda3\lib\site-packages\cowin_api\api.py", line 22, in get_availability_by_pincode
return filter_centers_by_age_limit(self._call_api(url), min_age_limt) if min_age_limt else self._call_api(url)
File "C:\Users\byashwan\Anaconda3\lib\site-packages\cowin_api\utils.py", line 11, in filter_centers_by_age_limit
original_centers = centers.get('centers')
AttributeError: 'HTTPError' object has no attribute 'get'

@DragonWarrior15
Copy link
Contributor

@sonu1125, please share the complete code that you have used to run this ?

@backtrackbaba
Copy link
Owner

@sonu1125 Closing the issue for now. Let us know if your issue still persists

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

No branches or pull requests

3 participants