Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clients: Return information on download exception #5250
The different download functions in the `DownloadClient` return lists containing the files and the states of the corresponding downloads. These states also include failed states. If an unknown exception is thrown in the `_download_item` method, the corresponding file, which should be downloaded, is not present in the output list. This leads to two problems; both can be solved by adding the file with the download status `FAILED` to the output list: - The number of files in the input queue and output queue is different, which throws an error. This is easily resolved by setting the file download status to `FAILED`. An error is later thrown. - The client does not print the summary in case there is no items in the output queue. By adding the file to the output queue this problem is resolved.
- Loading branch information