[#2942] Catch file_progress IndexError when checking a torrent

This commit is contained in:
Calum Lind 2016-11-30 11:54:59 +00:00
parent df88c82265
commit 739537f860
1 changed files with 2 additions and 0 deletions

View File

@ -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