From e23f67def6e6a2ee7d0f472d5d1321cd3e5201e7 Mon Sep 17 00:00:00 2001 From: David Amrhein Date: Mon, 22 Aug 2016 19:24:57 -0400 Subject: [PATCH] File handle for publishing on windows needs to handle binary data as 'rb' --- lbrynet/lbrynet_daemon/LBRYPublisher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYPublisher.py b/lbrynet/lbrynet_daemon/LBRYPublisher.py index 04b9bdaab..4d975c56b 100644 --- a/lbrynet/lbrynet_daemon/LBRYPublisher.py +++ b/lbrynet/lbrynet_daemon/LBRYPublisher.py @@ -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())