mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 22:53:40 +00:00
fix to not fail on missing torrent
This commit is contained in:
parent
e11c2f95e8
commit
eb3e938b77
@ -1,5 +1,6 @@
|
|||||||
include LICENSE
|
include LICENSE
|
||||||
include README
|
include README
|
||||||
|
include Makefile
|
||||||
include deluge.desktop
|
include deluge.desktop
|
||||||
include deluge.xpm
|
include deluge.xpm
|
||||||
include msgfmt.py
|
include msgfmt.py
|
||||||
|
@ -643,6 +643,10 @@ class Manager:
|
|||||||
torrents_with_unique_ID = self.unique_IDs.values()
|
torrents_with_unique_ID = self.unique_IDs.values()
|
||||||
|
|
||||||
for torrent in self.state.torrents:
|
for torrent in self.state.torrents:
|
||||||
|
if not os.path.exists(torrent.filename):
|
||||||
|
print "Missing file: %s" % torrent.filename
|
||||||
|
self.state.torrents.remove(torrent)
|
||||||
|
continue
|
||||||
if torrent not in torrents_with_unique_ID:
|
if torrent not in torrents_with_unique_ID:
|
||||||
# print "Adding torrent to core:", torrent.filename, torrent.save_dir, torrent.compact
|
# print "Adding torrent to core:", torrent.filename, torrent.save_dir, torrent.compact
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user