2012-01-30, 03:02
Full Debug log for ZeroDivisionError http://pastebin.com/KygxEyBy
I was able to fix this ZeroDivisionError.
The problem happens in:
script.module.simple.downloader\lib\SimpleDownloader.py", line 485, in _updateProgress
When a download starts, new_mark will sometimes equal get("mark"). This causes the denominator in the equation to be zero and python errors out. I'm not sure if this is the best fix, but replacing line 485 with the code below prevents a zero denominator.
I've test this and it works fine.
I was able to fix this ZeroDivisionError.
The problem happens in:
script.module.simple.downloader\lib\SimpleDownloader.py", line 485, in _updateProgress
Code:
speed = int((get("bytes_so_far") / 1024) / (new_mark - get("mark")))
When a download starts, new_mark will sometimes equal get("mark"). This causes the denominator in the equation to be zero and python errors out. I'm not sure if this is the best fix, but replacing line 485 with the code below prevents a zero denominator.
Code:
if new_mark == get("mark"):
speed = 0
else:
speed = int((get("bytes_so_far") / 1024) / (new_mark - get("mark")))
I've test this and it works fine.