| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
❌ 1 Tests Failed:
To view more test analytics, go to the Test Analytics Dashboard |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR addresses a KeyError: 'module' that occurred when a custom plugin was defined in codecov.yml without specifying the module or class keys. Previously, _load_plugin_from_yaml would directly subscript plugin_dict['module'] and plugin_dict['class'], leading to an unhandled KeyError if these keys were absent.
The fix adds an early validation check within _load_plugin_from_yaml. It now verifies the presence of both module and class keys. If either is missing, it logs an informative error message using click.secho and gracefully returns a NoopPlugin(), preventing the CLI from crashing. This approach is consistent with the existing error handling patterns within the function for other plugin loading issues.
Fixes CLI-BX
This PR was automatically generated by Sentry. You can adjust this setting at any time.