Косячки

sandbox1
inpos 2016-03-04 22:40:18 +03:00
parent 9f2bbc2fd6
commit a691af60e8
1 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@ except Exception, e:
else:
raise
import libtorrent as lt
from random import SystemRandom
import time
import urlparse, urllib
@ -992,7 +991,7 @@ class Pyrrent2http(object):
self.saveResumeData(True)
def processSaveResumeDataAlert(self, alert):
logging.info('Saving resume data to: %s', self.config.resumeFile)
logging.info('Saving resume data to: %s' % (self.config.resumeFile))
data = lt.bencode(alert.resume_data)
try:
with open(self.config.resumeFile, 'wb') as f:
@ -1015,7 +1014,7 @@ class Pyrrent2http(object):
return
entry = self.session.save_state()
data = lt.bencode(entry)
logging.info('Saving session state to: %s', self.config.stateFile)
logging.info('Saving session state to: %s' % (self.config.stateFile,))
try:
with open(self.config.stateFile, 'wb') as f:
f.write(data)