From 0de09c45dc2aea6a8ad9da57e32eae96d3626819 Mon Sep 17 00:00:00 2001 From: Hypfer Date: Mon, 20 Mar 2017 20:26:40 +0100 Subject: [PATCH] Fix #41 I don't know why that one file is broken and nor do I care. This could use some debug logging. Well. Whatever. --- .../java/de/fabianonline/telegram_backup/DownloadManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java b/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java index 9fcb8bc..5959f9a 100644 --- a/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java +++ b/src/main/java/de/fabianonline/telegram_backup/DownloadManager.java @@ -336,6 +336,10 @@ public class DownloadManager { if (e.getTag().startsWith("420: FLOOD_WAIT_")) { try_again = true; Utils.obeyFloodWaitException(e); + } else if (e.getCode()==400) { + //Somehow this file is broken. No idea why. Let's skip it for now + try_again = true; + return false; } else { throw e; }