We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f80cf2 commit c085d40Copy full SHA for c085d40
evdev/uinput.py
@@ -168,6 +168,9 @@ def syn(self):
168
169
def capabilities(self, verbose=False, absinfo=True):
170
'''See :func:`capabilities <evdev.device.InputDevice.capabilities>`.'''
171
+ if self.device is None:
172
+ raise UInputError('input device not opened - cannot read capabilites')
173
+
174
return self.device.capabilities(verbose, absinfo)
175
176
def _verify(self):
0 commit comments