fix(plugin): handle None response for online plugins retrieval

This commit is contained in:
InfinityPacer
2025-02-22 00:34:35 +08:00
parent 06fcf817bb
commit efd046d2f8
2 changed files with 4 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ class PluginHelper(metaclass=Singleton):
return json.loads(res.text)
except json.JSONDecodeError:
logger.error(f"插件包数据解析失败:{res.text}")
return None
return {}
def get_plugin_package_version(self, pid: str, repo_url: str, package_version: str = None) -> Optional[str]: