8000 Fix error message · python-trio/asyncgpio@7e2c4d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e2c4d7

Browse files
authored
Fix error message
1 parent ebde1ab commit 7e2c4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncgpio/gpio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __enter__(self):
124124
if self._state in _IN_USE:
125125
raise OSError("This line is already in use")
126126
if self._state == _FREE:
127-
raise RuntimeError("You need to call .open() or .event()")
127+
raise RuntimeError("You need to call .open() or .monitor()")
128128
self._line = gpio.lib.gpiod_chip_get_line(self._chip._chip, self._offset)
129129
if self._line == gpio.ffi.NULL:
130130
raise OSError("unable to get line")

0 commit comments

Comments
 (0)
0