Fix AttributeError: 'dict' object has no attribute 'required'
This commit is contained in:
parent
4b476f13bb
commit
71c3483f55
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue