fixed excepthook in spot_pwm module