mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
[#2942] Catch file_progress IndexError when checking a torrent
This commit is contained in:
parent
df88c82265
commit
739537f860
@ -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…
x
Reference in New Issue
Block a user