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

How do I get a user's notification? #33

Closed
8bitgentleman opened this issue Oct 19, 2016 · 1 comment
Closed

How do I get a user's notification? #33

8bitgentleman opened this issue Oct 19, 2016 · 1 comment

Comments

@8bitgentleman
Copy link

I got client_id, client_secret, access_token, and refresh_token just fine. Other user functions like user.name or user.get_comments() etc work fine but when I call user.get_notifications() it throws this error
File "/Library/Python/2.7/site-packages/pyimgur/__init__.py", line 1353, in get_notifications com_dict in resp['replies']] UnboundLocalError: local variable 'msg_dict' referenced before assignment

@Damgaard
Copy link
Owner

There was a bug in the source code. It has been fixed and a new version rolled out. To get the users notifications upgrade your version of pyimgur and then use your existing code. It should work without any problems now.

    pip install pyimgur --upgrade

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