1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Small fix

This commit is contained in:
M66B 2020-04-16 19:19:18 +02:00
parent 36c050de84
commit f0bcd619d3

View file

@ -62,7 +62,13 @@ public class DnsHelper {
continue;
String domain = email.substring(d + 1);
lookup(context, domain, "mx");
try {
lookup(context, domain, "mx");
} catch (UnknownHostException ex) {
Log.i(ex);
throw new UnknownHostException(context.getString(R.string.title_no_server, domain));
}
}
}