Skip to content

Commit

Permalink
fix plugin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed May 9, 2024
1 parent 30b3ad4 commit f59b5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ def get_dashboard_plugins(self) -> List[dict]:
"""
dashboards = []
for pid, plugin in self._running_plugins.items():
if not plugin.get_state():
continue
if hasattr(plugin, "get_dashboard") \
and ObjectUtils.check_method(plugin.get_dashboard):
try:
if not plugin.get_state():
continue
dashboards.append({
"id": pid,
"name": plugin.plugin_name
Expand Down

0 comments on commit f59b5b6

Please sign in to comment.