-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KeyError in onHeartbeat function
Fixes #45 Fix the KeyError 'examples' in the `onHeartbeat` function in `plugin.py`. * Add a check to ensure the key exists in `self.plugindata` before accessing it in `CheckForUpdatePythonPlugin` function. * Log an appropriate error message and skip the update check for the plugin if the key does not exist. * Add similar checks in `UpdatePythonPlugin` and `CheckForUpdatePythonPlugin` functions to handle missing keys. * Add debug messages for better logging and error handling. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ycahome/pp-manager/issues/45?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
1 changed file
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters