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')
|
directory = tempfile.mkdtemp(prefix='electron-tmp')
|
||||||
result = []
|
result = []
|
||||||
for optional_f in files:
|
for optional_f in files:
|
||||||
required = optional_f.required
|
required = optional_f['required']
|
||||||
f = optional_f.filename
|
f = optional_f['filename']
|
||||||
try:
|
try:
|
||||||
result.append(download(f, url + f, os.path.join(directory, f)))
|
result.append(download(f, url + f, os.path.join(directory, f)))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in a new issue