Merge pull request #1679

4efc926d Wallet API: Catch error from tools::is_local_address (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-02-08 12:53:57 +02:00
commit 99ee3fd17e
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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;
}
}
}