Fix error
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
This commit is contained in:
parent
526075cd5e
commit
8aee19b0ef
1 changed files with 5 additions and 5 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue