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

KeyError when calling get_comment(self, comment_id, **kwargs) #18

Closed
and-le opened this issue Aug 14, 2019 · 1 comment
Closed

KeyError when calling get_comment(self, comment_id, **kwargs) #18

and-le opened this issue Aug 14, 2019 · 1 comment

Comments

@and-le
Copy link

and-le commented Aug 14, 2019

A KeyError is raised whenever the get_comment(self, comment_id, **kwargs) method is called. The line of code below causes the error.

endpoint = '/comments/{id}'.format(comment_id) 

Removing the "id" from the curly braces solves the problem.

@and-le and-le changed the title KeyError when calling get_comment() KeyError when calling get_comment(self, comment_id, **kwargs) Aug 14, 2019
@jhodges10
Copy link
Contributor

jhodges10 commented Apr 15, 2020

Good catch, that is addressed in #35 along with lots of other things!

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

2 participants