Closed laheym closed 1 year ago
ah... I see. You are catching ALL exceptions. it's just your exception handling block raises the NameError because you're missing import time
Thanks very much for catching this and the PR. I have merged it and released a new version.
Thanks for sharing your module
I apparently lost connection and the following error was thrown (path to venv was redacted with XXX). A tool that is reading data from the internet should probably handle a disconnect more gently. After the ParticleCloud thread stopped, it stopped sending events to my handler function. Also looks like you're using
time.sleep()
in ParticleCloud.py but forgot toimport time