Skip to content

Conversation

@shtlrs
Copy link
Member

@shtlrs shtlrs commented Dec 12, 2022

closes #152

Instead of returning a null member instance upon NotFound exceptions, we've also decided to do the same for all bad requests, e.g. 400 status codes.

@netlify
Copy link

netlify bot commented Dec 12, 2022

Deploy Preview for bot-core ready!

Name Link
🔨 Latest commit 5a2f701
🔍 Latest deploy log https://app.netlify.com/sites/bot-core/deploys/6398597c28af4c000978ad07
😎 Deploy Preview https://deploy-preview-169--bot-core.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ChrisLovering
Copy link
Member

Could you bump the version in the pyproject.toml to 9.2.1 and add a changelog to https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst ?

@shtlrs
Copy link
Member Author

shtlrs commented Dec 13, 2022

Sure, I'll do that!

@shtlrs
Copy link
Member Author

shtlrs commented Dec 13, 2022

I changed the wrong files, 🤦
I'll fix it

Update
Actually not

@ChrisLovering ChrisLovering enabled auto-merge (squash) December 13, 2022 10:55
@ChrisLovering ChrisLovering merged commit 00b4f16 into python-discord:main Dec 13, 2022
@shtlrs shtlrs deleted the 152-get_or_fetch_member-catch-http-exception branch December 13, 2022 10:56
@shtlrs shtlrs changed the title Return null None from get_or_fetch_member upon unfound members & bad requests Return None from get_or_fetch_member upon unfound members & bad requests Dec 13, 2022
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.

get_or_fetch_member can raise discord.errors.HTTPException

2 participants