Fixed a plugin issue where there are no plugins found.

This commit is contained in:
Anton Hvornum 2021-05-31 12:17:18 +02:00
parent 3006e5b4c3
commit 7b1bb4af97
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ plugins = {}
# 1: List archinstall.plugin definitions
# 2: Load the plugin entrypoint
# 3: Initiate the plugin and store it as .name in plugins
for plugin_definition in metadata.entry_points()['archinstall.plugin']:
for plugin_definition in metadata.entry_points().get('archinstall.plugin', []):
plugin_entrypoint = plugin_definition.load()
try:
plugins[plugin_definition.name] = plugin_entrypoint()