mirror of https://github.com/M66B/FairEmail.git
Catch all quick config exceptions
This commit is contained in:
parent
8c2132fc56
commit
8bd364b050
|
@ -151,7 +151,7 @@ public class EmailProvider {
|
||||||
try {
|
try {
|
||||||
Log.i("Provider from DNS domain=" + domain);
|
Log.i("Provider from DNS domain=" + domain);
|
||||||
return addSpecials(context, fromDNS(domain));
|
return addSpecials(context, fromDNS(domain));
|
||||||
} catch (UnknownHostException ex) {
|
} catch (Throwable ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
try {
|
try {
|
||||||
Log.i("Provider from ISPDB domain=" + domain);
|
Log.i("Provider from ISPDB domain=" + domain);
|
||||||
|
@ -161,7 +161,7 @@ public class EmailProvider {
|
||||||
try {
|
try {
|
||||||
Log.i("Provider from template domain=" + domain);
|
Log.i("Provider from template domain=" + domain);
|
||||||
return addSpecials(context, fromTemplate(domain));
|
return addSpecials(context, fromTemplate(domain));
|
||||||
} catch (UnknownHostException ex2) {
|
} catch (Throwable ex2) {
|
||||||
Log.w(ex2);
|
Log.w(ex2);
|
||||||
throw new UnknownHostException(context.getString(R.string.title_setup_no_settings, domain));
|
throw new UnknownHostException(context.getString(R.string.title_setup_no_settings, domain));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue