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

Fix issue with author changing type #1

Merged
merged 1 commit into from
Sep 3, 2015
Merged

Conversation

megamit
Copy link
Contributor

@megamit megamit commented Sep 2, 2015

When cycling through the attributes of the data json 'author' within 'message' which was previously a user object is overwritten with a dictionary. This causes an AttributeError to be thrown ( and silently swallowed... thanks except: pass) whenever any of its attributes are referenced in the form message.author.x. User data should change in this step and the user object should not be modified for any reason so its safe to skip updating it.

When cycling through the attributes of the data json 'author' within 'message' which was previously a user object is overwritten with a dictionary. This causes an AttributeError to be thrown ( and silently swallowed... thanks except: pass) whenever any of its attributes are referenced in the form message.author.x. User data should change in this step and the user object should not be modified for any reason so its safe to skip updating it.
@Rapptz Rapptz merged commit 6a40a5d into Rapptz:master Sep 3, 2015
@Rapptz
Copy link
Owner

Rapptz commented Sep 3, 2015

I had to rebase it since I was working on some stuff.

@megamit megamit deleted the patch-1 branch September 3, 2015 09:30
@Rapptz
Copy link
Owner

Rapptz commented Sep 5, 2015

Somewhat unrelated to this PR but I added an on_error to propagate the uncaught exceptions if you wanted to check them out since you mentioned except: pass. They should no longer be silently swallowed (though if you throw from on_error you're on your own).

@Skarlett Skarlett mentioned this pull request Dec 4, 2019
3 tasks
@iNaruse iNaruse mentioned this pull request Aug 27, 2020
@BlueRikoroo BlueRikoroo mentioned this pull request Sep 29, 2020
3 tasks
@lostinfinite lostinfinite mentioned this pull request Jan 15, 2023
3 tasks
@friedrich-de friedrich-de mentioned this pull request Feb 15, 2023
3 tasks
JavaProgswing added a commit to JavaProgswing/discord.py that referenced this pull request Oct 13, 2023
@rrika rrika mentioned this pull request Dec 18, 2023
3 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants