[Core] Fix return type in t.get_file_progress

This commit is contained in:
Calum Lind 2017-01-12 10:36:16 +00:00
parent 78851becf2
commit bd80ad62a0

View File

@ -583,7 +583,7 @@ class Torrent(object):
def get_file_progress(self):
"""Returns the file progress as a list of floats.. 0.0 -> 1.0"""
if not self.handle.has_metadata():
return 0.0
return []
file_progress = self.handle.file_progress()
ret = []