diff --git a/platypush/plugins/gpio/sensor/motion/pwm3901.py b/platypush/plugins/gpio/sensor/motion/pwm3901.py index 4d62e7ee..fa190fad 100644 --- a/platypush/plugins/gpio/sensor/motion/pwm3901.py +++ b/platypush/plugins/gpio/sensor/motion/pwm3901.py @@ -98,7 +98,7 @@ class GpioSensorMotionPwm3901Plugin(GpioSensorPlugin): try: x, y = sensor.get_motion() break - except RuntimeError as e: + except RuntimeError: time.sleep(0.01) secs = int(time.time())