Fix AttributeError: 'dict' object has no attribute 'required' (#12307)

(cherry picked from commit 71c3483f55)
This commit is contained in:
John Kleinschmidt
2018-03-15 21:23:22 -04:00
committed by Shelley Vohr
parent bd33e7198e
commit 433aba34e6

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: