wacom: replace one 'old' exception with the new protocol one

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/191/head
Peter Hutterer 2019-08-22 08:34:46 +10:00 committed by Benjamin Tissoires
parent 22673b9e5a
commit be38e1a781
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ class WacomProtocolLowLevelComm(GObject.Object):
length = answer[1]
args = answer[2:]
if length > len(args):
raise WacomException(f'Invalid answer message length: expected {length}, got {len(args)}')
raise UnexpectedDataError(answer, f'Invalid answer message length: expected {length}, got {len(args)}')
self.nordic_answer = self.nordic_answer[length + 2:] # opcode + len
return NordicData(answer[:length + 2])