fix(app): Skip plugins with not satisfied dependencies.
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/push/test Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/pr/test Pipeline was successful Details

This commit is contained in:
Ferdinand Thiessen 2021-12-23 03:07:39 +01:00
parent 05667787de
commit 2fcc7ffc5b
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