mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Catch all quick config exceptions
This commit is contained in:
parent
8c2132fc56
commit
8bd364b050
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ public class EmailProvider {
|
|||
try {
|
||||
Log.i("Provider from DNS domain=" + domain);
|
||||
return addSpecials(context, fromDNS(domain));
|
||||
} catch (UnknownHostException ex) {
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
try {
|
||||
Log.i("Provider from ISPDB domain=" + domain);
|
||||
|
@ -161,7 +161,7 @@ public class EmailProvider {
|
|||
try {
|
||||
Log.i("Provider from template domain=" + domain);
|
||||
return addSpecials(context, fromTemplate(domain));
|
||||
} catch (UnknownHostException ex2) {
|
||||
} catch (Throwable ex2) {
|
||||
Log.w(ex2);
|
||||
throw new UnknownHostException(context.getString(R.string.title_setup_no_settings, domain));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue