mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-01-30 21:27:17 +00:00
@@ -243,7 +243,7 @@ class GPIODevice(ValuesMixin, GPIOBase):
|
||||
def _read(self):
|
||||
try:
|
||||
return self.pin.state == self._active_state
|
||||
except TypeError:
|
||||
except (AttributeError, TypeError):
|
||||
self._check_open()
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user