Compare commits

..

No commits in common. "5ff906086b1c2680545377988eed24a736734c4f" and "8e18a11fc8f09aa707f74894ea44865c3be8ddf8" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -233,8 +233,7 @@ class Plugin:
Returns: Returns:
Dict containing version and permissions of the plugin Dict containing version and permissions of the plugin
""" """
from flaschengeist.utils.plugin import plugin_version return {"version": self.version, "permissions": self.permissions}
return {"version": plugin_version(self), "permissions": self.permissions}
class AuthPlugin(Plugin): class AuthPlugin(Plugin):

View File

@ -25,9 +25,6 @@ def get_plugins() -> list[type[Plugin]]:
plugins.append(plugin_class) plugins.append(plugin_class)
except TypeError: except TypeError:
logger.error(f"Invalid entry point for plugin {entry_point.name} found.") logger.error(f"Invalid entry point for plugin {entry_point.name} found.")
except pkg_resources.DistributionNotFound:
logger.warn(f"Requirements not fulfilled for {entry_point.name}")
logger.debug("DistributionNotFound", exc_info=True)
return plugins return plugins