From 8bd364b050da11fc18ae86ad0794726e2c5d54f6 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 Jun 2019 21:22:29 +0200 Subject: [PATCH] Catch all quick config exceptions --- app/src/main/java/eu/faircode/email/EmailProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailProvider.java b/app/src/main/java/eu/faircode/email/EmailProvider.java index ff3feee2ac..7d34f1ae5c 100644 --- a/app/src/main/java/eu/faircode/email/EmailProvider.java +++ b/app/src/main/java/eu/faircode/email/EmailProvider.java @@ -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)); }