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

[2199] Better Exceptions on URL Errors #2205

Merged

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Apr 15, 2024

In the event of a connection issue to github, there are a number of errors and exceptions that can be thrown. A number of exception types are accounted for. Some are not.

This PR changes to the general requests exception to handle, and prevent EDSM from crashing if the killswtich file cannot be contacted for whatever reason.

Also includes a minor fix to the EntryMenu class which will allow greater plugin compatibility with existing plugins which use an unclear nb.Entry.

Discovered by #2199

@Rixxan Rixxan added bug enhancement python Pull requests that update Python code Ready for Review PRs ready for review and merge labels Apr 15, 2024
@Rixxan Rixxan added this to the 5.11.0 milestone Apr 15, 2024
@Rixxan Rixxan self-assigned this Apr 15, 2024
Copy link
Member

@C1701D C1701D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@C1701D C1701D merged commit 74fc774 into EDCD:develop Apr 20, 2024
1 check passed
@C1701D C1701D deleted the enhancement/2199/better-exception-on-urlerr branch April 20, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement python Pull requests that update Python code Ready for Review PRs ready for review and merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants