fix(app): Skip plugins with not satisfied dependencies.
continuous-integration/woodpecker the build failed Details

This commit is contained in:
Ferdinand Thiessen 2021-12-23 03:07:39 +01:00
parent 04dcf39dfc
commit 5ff906086b
1 changed files with 3 additions and 0 deletions

View File

@ -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