Getting an IndexError on the command line output of Octoprint #308

Open
opened 2020-04-06 21:51:13 +01:00 by mrpegman · 0 comments
mrpegman commented 2020-04-06 21:51:13 +01:00 (Migrated from github.com)

I set up Octoprint on a test Raspberry Pi 3B+ to try out the Enclosure plugin. I added 1 DHT11 temperature sensor, configured it and it works as advertised. I can see the temperature and humidity from the sensor.

I noticed in the shell window where I manually started Octoprint, that the following message repeats every few seconds. I'm a developer and I would say you need to add a check for the list size prior to trying to pop an item off it. Here is the message:

2020-04-06 15:47:00,958 - octoprint.plugins.enclosure - WARNING - An exception of type IndexError occurred on log_error. Arguments: ('pop from empty list',)

Really liking this plug-in.

I set up Octoprint on a test Raspberry Pi 3B+ to try out the Enclosure plugin. I added 1 DHT11 temperature sensor, configured it and it works as advertised. I can see the temperature and humidity from the sensor. I noticed in the shell window where I manually started Octoprint, that the following message repeats every few seconds. I'm a developer and I would say you need to add a check for the list size prior to trying to pop an item off it. Here is the message: 2020-04-06 15:47:00,958 - octoprint.plugins.enclosure - WARNING - An exception of type IndexError occurred on log_error. Arguments: ('pop from empty list',) Really liking this plug-in.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#308