From ea2a3c3b70b5d7d80e372b880d7a13c3231bc4e3 Mon Sep 17 00:00:00 2001 From: jackrobison Date: Mon, 26 Oct 2015 11:00:07 -0400 Subject: [PATCH] Update LBRYSettings.py --- lbrynet/lbrynet_console/LBRYSettings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_console/LBRYSettings.py b/lbrynet/lbrynet_console/LBRYSettings.py index acb1b925a..7414eb3cb 100644 --- a/lbrynet/lbrynet_console/LBRYSettings.py +++ b/lbrynet/lbrynet_console/LBRYSettings.py @@ -82,7 +82,7 @@ class LBRYSettings(object): def get_rate(): if rate_type in self.db: - return json.loads(self.db['rate_type']) + return json.loads(self.db[rate_type]) else: return None @@ -117,4 +117,4 @@ class LBRYSettings(object): def _set_query_handler_status(self, query_identifier, status): def set_status(): self.db[json.dumps(('q_h', query_identifier))] = json.dumps(status) - return threads.deferToThread(set_status) \ No newline at end of file + return threads.deferToThread(set_status)