OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.55k stars 1.15k forks source link

Don't raise unless exception occurs. #668

Closed scovetta closed 1 year ago

scovetta commented 1 year ago

This commit adds a check before raise last_error.

last_error could still be None, in which case raise None itself throws an exception, which is probably not what you want.