dont fail with old downloads
This commit is contained in:
parent
f16ac0e3c1
commit
c7ce20a3b9
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ class Downloads(Thread):
|
|||
import item.models
|
||||
self.download_updates()
|
||||
downloads = list(self.transfers.items())
|
||||
downloads.sort(key=lambda t: t[1].get('added'))
|
||||
try:
|
||||
downloads.sort(key=lambda t: t[1].get('added'))
|
||||
except:
|
||||
pass
|
||||
for itemid, t in downloads:
|
||||
if state.shutdown:
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue