nhammond129 / libdiana

Simple Python library for communicating with Artemis SBS
MIT License
2 stars 0 forks source link

When skipping bytes to resync, not reading until next magic number before trying to decode packets #1

Closed nhammond129 closed 2 years ago

nhammond129 commented 6 years ago

Currently hackily ignoring bad packets with a try: except: block in socket.py https://github.com/Nullspeaker/libdiana/blob/master/diana/socket.py#L17

nhammond129 commented 6 years ago

No issue since. Hacky fix might be an OK one, can't think of a better way to handle right now.

nhammond129 commented 2 years ago

excepting the specific exception seems fine. closing.