mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 03:46:29 -05:00
Download.settings may not exist.
This commit is contained in:
parent
ce34721c4c
commit
478f380b0c
1 changed files with 1 additions and 1 deletions
|
|
@ -1105,7 +1105,7 @@ async def import_downloads_config(session: Session):
|
|||
existing.next_download = download['next_download']
|
||||
existing.status = download['status']
|
||||
existing.sub_downloader = download['sub_downloader']
|
||||
existing.settings = download['settings'] or dict()
|
||||
existing.settings = download.get('settings') or dict()
|
||||
|
||||
for download in downloads_by_url.values():
|
||||
# These downloads are new, import them.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue