tjguk / networkzero

Making it easy for teachers to use simple networking in Python
MIT License
47 stars 14 forks source link

Google Nest Hub on LAN crashes discovery #53

Open hypoid opened 3 years ago

hypoid commented 3 years ago

Apparently Google Nest Hub spits out data that clobbers networkzero's discovery beacon thread every 30 seconds or so. I've narrowed it down to discovery.py's listen_for_one_advert() function.

Using a try/except clause to catch UnicodeDecodeError's appears to fix it but I'm not sure if this is "the right way to do it (TM)".