🐛 Fix blacklist processing (#4296)

Closes #4294
This commit is contained in:
Shawn Bruce authored and Gina Häußge committed 2021-11-03 10:19:33 +01:00
1 parent 4455535423
commit 270cb4f9de
1 file changed
+2 -2
+2 -2
View File
@@ -854,7 +854,7 @@ class PluginManager(object):
key, version = entry
try:
processed_blacklist.append(
(key, pkg_resources.Requirement.parse(version))
(key, pkg_resources.Requirement.parse(key + version))
)
except Exception:
self.logger.warning(
@@ -1340,7 +1340,7 @@ class PluginManager(object):
return entry_key == key and version in entry_version
return False
return any(map(lambda entry: matches_plugin(entry), self.plugin_blacklist))
return any(map(matches_plugin, self.plugin_blacklist))
def reload_plugins(
self, startup=False, initialize_implementations=True, force_reload=None