File handle for publishing on windows needs to handle binary data as 'rb'

This commit is contained in:
David Amrhein 2016-08-22 19:24:57 -04:00
parent 84d340382b
commit e23f67def6

View file

@ -59,7 +59,7 @@ class Publisher(object):
d = self._check_file_path(self.file_path)
d.addCallback(lambda _: create_lbry_file(self.session, self.lbry_file_manager,
self.file_name, open(self.file_path)))
self.file_name, open(self.file_path, 'rb')))
d.addCallback(self.add_to_lbry_files)
d.addCallback(lambda _: self._create_sd_blob())
d.addCallback(lambda _: self._claim_name())