OctoPrint-IFTTT
OctoPrint-IFTTT copied to clipboard
KeyError in Log files
I was looking through my Octoprint log files, for an unrelated issue, and noticed this looping code. Unless my bed heating issues are related somehow, it doesn't seem to be effecting anything as my IFTTT commands are still working. But It would be nice to eliminate it if possible.
2020-05-19 16:27:38,709 - octoprint.plugins.IFTTT - INFO - .name
2020-05-19 16:27:38,722 - octoprint.plugin - ERROR - Error while calling plugin IFTTT
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 224, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_IFTTT/__init__.py", line 30, in on_event
value_thunks = [self._interpret_value(event_payload, value) for value in event["values"] + [""] * (3 - len(event["values"]))]
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_IFTTT/__init__.py", line 50, in _interpret_value
return to_thunk(payload[value[1:]])```