From 17d233b55d476212c482c171f5a10a9cc928b208 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 22 Dec 2019 19:40:41 +0100 Subject: [PATCH] Fixed __exit__ arguments list in GpioSensorDistance --- platypush/plugins/gpio/sensor/distance/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/gpio/sensor/distance/__init__.py b/platypush/plugins/gpio/sensor/distance/__init__.py index 1e4fba0d..ecfaa312 100644 --- a/platypush/plugins/gpio/sensor/distance/__init__.py +++ b/platypush/plugins/gpio/sensor/distance/__init__.py @@ -129,7 +129,7 @@ class GpioSensorDistancePlugin(GpioPlugin, GpioSensorPlugin): def __enter__(self): self._init_board() - def __exit__(self): + def __exit__(self, exc_type, exc_val, exc_tb): self.close() def _get_measurement_thread(self, duration: float):