clarify printouts with fast resume

This commit is contained in:
Marcos Pinto 2008-03-06 01:02:28 +00:00
parent 5577667631
commit 3ff2af0f2a
1 changed files with 10 additions and 4 deletions

View File

@ -468,6 +468,9 @@ class Manager:
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
deluge_core.save_fastresume(unique_ID, self.unique_IDs[unique_ID].filename)
except Exception, e:
if "No such file or directory" in e:
print "no old fastresume to delete"
else:
print "Unable to save fastresume: ", e
else:
# Do not save fastresume if torrent is Queued for checking or being checked
@ -478,6 +481,9 @@ class Manager:
os.remove(self.unique_IDs[uid].filename + ".fastresume")
deluge_core.save_fastresume(uid, self.unique_IDs[uid].filename)
except Exception, e:
if "No such file or directory" in e:
print "no old fastresume to delete"
else:
print "Unable to save fastresume: ", e
return True