🐛 plugin.version can be None, episode 2
This commit is contained in:
1 parent
a4d5acb0b8
commit
b3e76c3ecc
1 file changed
+3
-1
@@ -208,7 +208,9 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
|
||||
plugins = self._plugin_manager.enabled_plugins
|
||||
plugins_thirdparty = [plugin for plugin in plugins.values() if not plugin.bundled]
|
||||
payload = dict(plugins=",".join(map(lambda x: "{}:{}".format(x.key.lower(), x.version.lower()), plugins_thirdparty)))
|
||||
payload = dict(plugins=",".join(map(lambda x: "{}:{}".format(x.key.lower(),
|
||||
x.version.lower() if x.version else "?"),
|
||||
plugins_thirdparty)))
|
||||
|
||||
self._track("pong", body=True, **payload)
|
||||
|
||||
|
||||
Reference in new issue
Block a user