Re: [Owfs-developers] pyowfs exceptions

2010-05-31 Thread Marcus Priesch
Hi mick, i am really sorry, but obviously your post scrolled out of my inbox view ... and i just forgot it ;) well, KeyError is the desired behaviour when you do a "get" on a "dictionary" like object ... so your code should be prepared for it ;) as i see aou alread catch the IOError - however i

Re: [Owfs-developers] pyowfs exceptions

2010-05-31 Thread Mick Sulley
Hi Marcus, Could you give me any pointers on this please? I am fairly sure that the problem is that in line 95 of owfs.py it has raise KeyError(key) Is it possible for this to return something rather than raising an error? That way I could pick it up in my code and stop it crashing. Thanks Mic