[#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…
Reference in New Issue