🥅 plugin_version could be None
E.g. if we try to load notifications for a bundled plugin (could happen in case of identifier clash - normally *shouldn't* but just did during development, so better safe than sorry)
This commit is contained in:
1 parent
fb7fa0bde8
commit
d825eeffe7
1 file changed
+3
-2
@@ -2348,10 +2348,11 @@ def _filter_relevant_notification(notification, plugin_version, octoprint_versio
|
||||
and (
|
||||
(version_ranges is None and versions is None)
|
||||
or (
|
||||
version_ranges
|
||||
plugin_version
|
||||
and version_ranges
|
||||
and (any(map(lambda v: plugin_version in v, version_ranges)))
|
||||
)
|
||||
or (versions and plugin_version in versions)
|
||||
or (plugin_version and versions and plugin_version in versions)
|
||||
)
|
||||
and (
|
||||
"octoversions" not in notification
|
||||
|
||||
Reference in new issue
Block a user