Hi, I am trying to develop a system using pyowfs. I need the system to cope with sensors being disconnected without crashing.
I have put try: except statements in my code, but when I disconnect a sensor I now get an error from the owfs.py code, it says - The debugged program raised the exception unhandled AttributeError "'NoneType' object has no attribute 'split'" File: /usr/local/lib/python2.6/dist-packages/pyowfs/owfs.py, Line: 70 Which is referring to def iter_entries (self) : """Iterates over all entries under this directory node. """ for e in self.capi.get (self.path).split (",") : if not sensor_rex.match (e) : if e.endswith ("/") : yield Dir (self.path + e, self.capi) else : yield e # end def iter_entries Do I need to put try: except statements in there or is there a better way to handle it? Thanks Mick ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers