mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[#2942] Catch file_progress IndexError when checking a torrent
This commit is contained in:
parent
df88c82265
commit
739537f860
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue