Fix AttributeError: 'dict' object has no attribute 'required'

This commit is contained in:
John Kleinschmidt 2018-03-15 13:20:41 -04:00
parent 4b476f13bb
commit 71c3483f55

View file

@ -64,8 +64,8 @@ def download_files(url, files):
directory = tempfile.mkdtemp(prefix='electron-tmp')
result = []
for optional_f in files:
required = optional_f.required
f = optional_f.filename
required = optional_f['required']
f = optional_f['filename']
try:
result.append(download(f, url + f, os.path.join(directory, f)))
except Exception: