Exception TypeError in InputDevice.close() function
alexknop opened this issue · 1 comments
alexknop commented
Exception TypeError: TypeError('super() takes at least 1 argument (0 given)',) in <bound method InputDevice.__del__ of InputDevice('/dev/input/event0')> ignored
Getting this error in /usr/local/lib/python2.7/dist-packages/evdev/device.py
def close(self):
if self.fd > -1:
try:
super().close()<---Coming from this line
os.close(self.fd)
#except TypeError:
#pass
finally:
self.fd = -1
And if I uncomment the except statement, I wont see the error. So I have found a workaround but the underlying error still exists.