fixed a problem with publish

This commit is contained in:
Jack 2015-11-07 00:15:42 -05:00
parent 0891b0d294
commit 40218e02e1

View file

@ -1705,7 +1705,7 @@ class Publish(CommandHandler):
self.console.sendLine(message % (str(self.file_name), str(self.publish_name), err.getErrorMessage()))
def _do_publish(self):
d = create_lbry_file(self.session, self.lbry_file_manager, self.file_name, open(self.file_name))
d = create_lbry_file(self.session, self.lbry_file_manager, self.file_name, open(self.file_path))
d.addCallback(self.add_to_lbry_files)
d.addCallback(lambda _: self._create_sd_blob())
d.addCallback(lambda _: self._claim_name())