AlexVerrico / octoprint-stats

Stats for your octoprint instance. Mirrored from https://github.com/amsbr/OctoPrint-Stats originally
14 stars 8 forks source link

[Bug] #36

Open gneiss15 opened 1 year ago

gneiss15 commented 1 year ago

Describe the bug Inside octoprint.log the following error si shown: TypeError: argument of type 'NoneType' is not iterable

To Reproduce Just lock into octoprint.log after plugin was installed (and activated)

Expected behavior No error

Screenshots n/a

Environment information:

Additional context snipped from octoprint.log: 2022-10-04 20:42:44,704 - octoprint.plugins.stats - INFO - Printer Stats - on_event 2022-10-04 20:42:44,704 - octoprint.plugin - ERROR - Error while calling plugin stats Traceback (most recent call last): File "/home/pi/OctoPrint/lib/python3.9/site-packages/octoprint/plugin/init.py", line 273, in call_plugin result = getattr(plugin, method)(*args, *kwargs) File "/home/pi/OctoPrint/lib/python3.9/site-packages/octoprint/util/init.py", line 1688, in wrapper return f(args, **kwargs) File "/home/pi/OctoPrint/lib/python3.9/site-packages/octoprint_stats/init.py", line 801, in on_event if "owner" not in payload: TypeError: argument of type 'NoneType' is not iterable