dbb: handle password prompt cancellation better

This commit is contained in:
SomberNight 2018-03-18 01:55:15 +01:00
parent 3fb75bc606
commit ee3ab5361e

View file

@ -168,7 +168,7 @@ class DigitalBitbox_Client():
msg = _("Enter your Digital Bitbox password:")
while self.password is None:
if not self.password_dialog(msg):
return False
raise UserCancelled()
reply = self.hid_send_encrypt(b'{"led":"blink"}')
if 'error' in reply:
self.password = None