From d948ff7bb6926e67bbd6798ca1abe26fb4453d8e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 8 Feb 2018 12:12:24 +1000 Subject: [PATCH] wacom: don't check for 'protocol' in the config, it's always set --- tuhi/wacom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index f0c5669..d54a338 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -677,7 +677,7 @@ class WacomDevice(GObject.Object): def _init_protocol(self): protocol = Protocol.UNKNOWN - if self._config is not None and 'Protocol' in self._config: + if self._config is not None: try: protocol = next(p for p in Protocol if p.value == self._config['Protocol']) except StopIteration: