From 6c77c653f725da02dc025882cb83bdaa10a5110b Mon Sep 17 00:00:00 2001 From: stom79 Date: Tue, 14 Nov 2017 15:13:29 +0100 Subject: [PATCH] Catches all errors --- .../gouv/etalab/mastodon/client/PatchBaseImageDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/client/PatchBaseImageDownloader.java b/app/src/main/java/fr/gouv/etalab/mastodon/client/PatchBaseImageDownloader.java index 0374633ae..e2786d028 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/client/PatchBaseImageDownloader.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/client/PatchBaseImageDownloader.java @@ -67,7 +67,7 @@ public class PatchBaseImageDownloader extends BaseImageDownloader { } try { return new ContentLengthInputStream(new BufferedInputStream(conn.getInputStream(), BUFFER_SIZE), conn.getContentLength()); - }catch (FileNotFoundException e){ + }catch (Exception e){ return null; }