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: KeyError in EmbedMedia #2109

Merged
merged 3 commits into from
Jun 10, 2023
Merged

Conversation

OmLanke
Copy link
Contributor

@OmLanke OmLanke commented Jun 10, 2023

Summary

Fixes KeyError caused due to unprotected dict attribute accessing.

Fixes #2107.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

Merging #2109 (65eaf0b) into master (96355dd) will not change coverage.
The diff coverage is 40.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2109   +/-   ##
=======================================
  Coverage   33.13%   33.13%           
=======================================
  Files          97       97           
  Lines       19141    19141           
=======================================
  Hits         6342     6342           
  Misses      12799    12799           
Flag Coverage Δ
macos-latest-3.10 33.11% <40.00%> (ø)
macos-latest-3.11 33.11% <40.00%> (ø)
macos-latest-3.8 33.12% <40.00%> (ø)
macos-latest-3.9 33.12% <40.00%> (ø)
ubuntu-latest-3.10 33.11% <40.00%> (ø)
ubuntu-latest-3.11 33.11% <40.00%> (ø)
ubuntu-latest-3.8 33.12% <40.00%> (ø)
ubuntu-latest-3.9 33.12% <40.00%> (ø)
windows-latest-3.10 33.11% <40.00%> (ø)
windows-latest-3.11 33.11% <40.00%> (ø)
windows-latest-3.8 33.12% <40.00%> (ø)
windows-latest-3.9 33.12% <40.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
discord/embeds.py 25.21% <40.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96355dd...65eaf0b. Read the comment docs.

@Lulalaby Lulalaby merged commit e5aafe4 into Pycord-Development:master Jun 10, 2023
@pullapprove4
Copy link

pullapprove4 bot commented Jul 27, 2023

Please add a changelog entry

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.

KeyError when getting thumbnail url from embed
3 participants