Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebUI] Fix progress divide by 0 error with empty dir
If a dir exists with no contents then the following error occurred: ``` Traceback (most recent call last): ... File "/usr/lib/python3.10/site-packages/deluge/ui/web/json_api.py", line 608, in _on_got_files dirinfo['progress'] = sum(progresses) / dirinfo['size'] * 100 builtins.ZeroDivisionError: float division by zero ``` Closes: #439
- Loading branch information