mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 00:57:26 +03:00
Don't use dict union operator (requires Python 3.9).
This commit is contained in:
parent
5caa197911
commit
50355d241e
@ -285,8 +285,9 @@ class UsbDeviceNode(AbstractDeviceNode):
|
||||
class ReaderDeviceNode(AbstractDeviceNode):
|
||||
def get_data(self):
|
||||
try:
|
||||
return super().get_data() | dict(present=True)
|
||||
return {**super().get_data(), "present": True}
|
||||
except Exception:
|
||||
logger.debug("Couldn't get NFC device info, present=False", exc_info=True)
|
||||
return dict(present=False)
|
||||
|
||||
@child
|
||||
|
Loading…
Reference in New Issue
Block a user