QuantumQuadrate / CsPyController

GNU Lesser General Public License v3.0
3 stars 3 forks source link

fix bare excepts, make threads daemon #51

Closed c-poole closed 3 years ago

c-poole commented 4 years ago

Fixes bare except clauses that look like this as we should at the very least be using except Exception.

try:
    foo()
except:
    bar()

Also changes all thread launches to set the thread's daemon parameter to true, which should kill the thread if the launching thread closes.

A fair bit of code style improvements here and there are also scattered around.