From 8aee19b0ef7af5631d4e3e94843033f1879cb6c3 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 7 Dec 2015 18:02:29 -0500 Subject: [PATCH] Fix error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes an error if you don’t have a conf file set up, previously it would fail because the AutoFetcher object doesn’t have a console object until it’s called for the first time --- lbrynet/core/client/AutoDownloader.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lbrynet/core/client/AutoDownloader.py b/lbrynet/core/client/AutoDownloader.py index df69f561f..23460be72 100644 --- a/lbrynet/core/client/AutoDownloader.py +++ b/lbrynet/core/client/AutoDownloader.py @@ -352,10 +352,10 @@ class AutoFetcher(object): if l.startswith("maxkey="): settings["maxkey"] = float(l[7:].rstrip('\n')) else: - self.console.sendLine("Autofetcher using default max key price of 0.0") - self.console.sendLine("To change this create the file:") - self.console.sendLine(str(self.autofetcher_conf)) - self.console.sendLine("Example contents of conf file:") - self.console.sendLine("maxkey=1.0") + print "Autofetcher using default max key price of 0.0" + print "To change this create the file:" + print str(self.autofetcher_conf) + print "Example contents of conf file:" + print "maxkey=1.0" self.max_key_fee = settings["maxkey"]