From 739537f860892e2f526e8416ae53ab08ff9fc47b Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 30 Nov 2016 11:54:59 +0000 Subject: [PATCH] [#2942] Catch file_progress IndexError when checking a torrent --- deluge/core/torrent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 95b380d8b..feef72873 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -592,6 +592,8 @@ class Torrent(object): ret.append(float(file_progress[i]) / float(f["size"])) except ZeroDivisionError: ret.append(0.0) + except IndexError: + return [] return ret