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: allow ecosystems to still load when default provider or network not found #1049

Merged

Conversation

antazoey
Copy link
Contributor

@antazoey antazoey commented Sep 13, 2022

What I did

If a provider plugin has a single bug in it currently, every core plugin that uses the network_option fails to load.
This is because the config loads in the plugin attempting to set the default but the default provider "does not exist" but it fails to load.

How I did it

Instead of failing to return any ecosystems at all when attempting to set the default provider fails with a NetworkError, log the error and move on.

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey changed the title fix: allow ecosystems to still load when provider plugin errors fix: allow ecosystems to still load when default provider or network not found Sep 13, 2022
fubuloubu
fubuloubu previously approved these changes Sep 13, 2022
Copy link
Contributor

@sabotagebeats sabotagebeats left a comment

Choose a reason for hiding this comment

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

changes look good to me

@antazoey antazoey merged commit 0e0eaa0 into ApeWorX:main Sep 14, 2022
@antazoey antazoey deleted the fix/jules/allow-plugins-to-work-when-bad-provider branch September 14, 2022 02:13
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

3 participants