summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-15 15:02:56 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-15 15:02:56 +0000
commitdad79748fa8389a15a9b401eb4f427df79b136ce (patch)
tree446c861e6645766b704e4dc34da0d7abace96368
parent3169b460f02bdb20865d92e3a6ae051ae8885a34 (diff)
downloaddeluge-dad79748fa8389a15a9b401eb4f427df79b136ce.tar.gz
deluge-dad79748fa8389a15a9b401eb4f427df79b136ce.tar.bz2
deluge-dad79748fa8389a15a9b401eb4f427df79b136ce.zip
catch exception in last
-rw-r--r--src/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index bae4df607..2b8eb36af 100644
--- a/src/core.py
+++ b/src/core.py
@@ -864,7 +864,10 @@ class Manager:
#remove fastresume for non-seed
torrent_state = self.get_core_torrent_state(unique_ID, False)
if not torrent_state['is_seed']:
- os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
+ try:
+ os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
+ except:
+ pass
# Remove torrents from core, unique_IDs and queue
to_delete = []