Closed escesare closed 1 year ago
When file is not modified, download() returns None here:
download()
None
if response.status_code == requests.codes.not_modified: return
This poses a problem because then encoder_filename = None when bpe_encoder() tries to read the downloaded file:
encoder_filename = None
bpe_encoder()
encoder_filename = download(encoder_file["link"], encoder_file["filename"]
I believe download() should return the filepath even if file was already downloaded and doesn't need to be updated. Is my understanding correct?
When file is not modified,
download()
returnsNone
here:This poses a problem because then
encoder_filename = None
whenbpe_encoder()
tries to read the downloaded file:I believe
download()
should return the filepath even if file was already downloaded and doesn't need to be updated. Is my understanding correct?