Update __init__.py

This commit is contained in:
Vitor de Miranda Henrique
2017-04-15 03:14:33 -05:00
committed by GitHub
parent ceb033ce17
commit 00217c9c50

View File

@@ -143,7 +143,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
import Adafruit_DHT
return Adafruit_DHT.read_retry(self.toInt(sensor), self.toInt(pin),2,0.5)
except Exception as ex:
template = "An exception of type {0} occurred on checkEnclosureTemp. Arguments:\n{1!r}"
template = "An exception of type {0} occurred on readDhtTemp. Arguments:\n{1!r}"
message = template.format(type(ex).__name__, ex.args)
self._logger.warn(message)
return (0, 0)