Duke-GCB / lando

Lando's not a man, he's a system
MIT License
0 stars 1 forks source link

Error in new DukeDSClient download #193

Closed johnbradley closed 5 years ago

johnbradley commented 5 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/worker.py", line 186, in run
    self.func(working_directory, self.payload)
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/worker.py", line 82, in stage_files
    download_file.run(staging_context)
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/staging.py", line 149, in run
    FileUrlDownloader.check_file_size(dds_file.current_version['size'], self.dest)
KeyError: 'size'

It should be current_version['upload']['size']. This is a bug from PR #192. I must have accidentally tested that PR with an older bespin worker VM.