diff options
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/api/utils.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wallet/api/utils.cpp b/src/wallet/api/utils.cpp index 788d98f25..c369427b4 100644 --- a/src/wallet/api/utils.cpp +++ b/src/wallet/api/utils.cpp @@ -39,8 +39,13 @@ namespace Monero { namespace Utils { bool isAddressLocal(const std::string &address) -{ - return tools::is_local_address(address); +{ + try { + return tools::is_local_address(address); + } catch (const std::exception &e) { + MERROR("error: " << e.what()); + return false; + } } } |