mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix AttributeError: 'dict' object has no attribute 'required' (#12307)
(cherry picked from commit 71c3483f55)
This commit is contained in:
committed by
Shelley Vohr
parent
bd33e7198e
commit
433aba34e6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user