When DELETE_FILE_ON_TRASHCAN is enabled and a download that never produced a file is cleared, dl.info.filename is unset, so os.remove(...) raises AttributeError. It is caught and logged as a misleading 'deleting file ... failed' warning even though there is nothing on disk to remove. Guard with getattr and skip deletion when there is no filename. |
||
|---|---|---|
| .. | ||
| tests | ||
| dl_formats.py | ||
| main.py | ||
| state_store.py | ||
| subscriptions.py | ||
| ytdl.py | ||