523 CtapError.ERR.NOT_ALLOWED, |
523 CtapError.ERR.NOT_ALLOWED, |
524 CtapError.ERR.PIN_AUTH_BLOCKED, |
524 CtapError.ERR.PIN_AUTH_BLOCKED, |
525 ): |
525 ): |
526 msg = self.tr( |
526 msg = self.tr( |
527 "Reset must be triggered within 5 seconds after the security" |
527 "Reset must be triggered within 5 seconds after the security" |
528 "key is inserted." |
528 " key is inserted." |
529 ) |
529 ) |
530 else: |
530 else: |
531 msg = str(err) |
531 msg = str(err) |
532 |
532 |
533 return False, self.tr("Reset failed. {0}").format(msg) |
533 return False, self.tr("Reset failed. {0}").format(msg) |