def show_mnemonic(self) -> None: """ Returns True if mnemonic was successfully shown and confirmed. Raises a Bitbox02Exception on failure. """ # pylint: disable=no-member request = hww.Request() request.show_mnemonic.CopyFrom(mnemonic.ShowMnemonicRequest()) self._msg_query(request, expected_response="success")
def show_mnemonic(self) -> bool: """ Returns True if mnemonic was successfully shown and confirmed. Returns False otherwise. """ # pylint: disable=no-member request = hww.Request() request.show_mnemonic.CopyFrom(mnemonic.ShowMnemonicRequest()) try: self._msg_query(request, expected_response="success") except Bitbox02Exception as err: if err.code == ERR_GENERIC: return False raise return True