From 6256065a07bc61284e27f02587c9b1d6863b3667 Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 9 Mar 2020 11:26:31 -0400 Subject: [PATCH] get_mnemonic_language() returns empty string if watch-only --- src/wallet/monero_wallet_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/monero_wallet_core.cpp b/src/wallet/monero_wallet_core.cpp index 3dd0299..f86eea5 100644 --- a/src/wallet/monero_wallet_core.cpp +++ b/src/wallet/monero_wallet_core.cpp @@ -1020,7 +1020,7 @@ namespace monero { } string monero_wallet_core::get_mnemonic_language() const { - if (m_w2->watch_only()) throw runtime_error("The wallet is watch-only. Cannot retrieve mnemonic language."); + if (m_w2->watch_only()) return ""; return m_w2->get_seed_language(); }