Compare commits
2 Commits
8e18a11fc8
...
5ff906086b
Author | SHA1 | Date |
---|---|---|
Ferdinand Thiessen | 5ff906086b | |
Ferdinand Thiessen | 04dcf39dfc |
|
@ -233,7 +233,8 @@ class Plugin:
|
||||||
Returns:
|
Returns:
|
||||||
Dict containing version and permissions of the plugin
|
Dict containing version and permissions of the plugin
|
||||||
"""
|
"""
|
||||||
return {"version": self.version, "permissions": self.permissions}
|
from flaschengeist.utils.plugin import plugin_version
|
||||||
|
return {"version": plugin_version(self), "permissions": self.permissions}
|
||||||
|
|
||||||
|
|
||||||
class AuthPlugin(Plugin):
|
class AuthPlugin(Plugin):
|
||||||
|
|
|
@ -25,6 +25,9 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue