Wallet API: Catch error from tools::is_local_address

This commit is contained in:
Jaquee 2017-02-05 11:08:05 +01:00
parent e56bf442c3
commit 4efc926d28
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

View File

@ -40,7 +40,12 @@ namespace Utils {
bool isAddressLocal(const std::string &address) 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;
}
} }
} }