From ed55353700586d9c70d351224d7fd7c35a18a2df Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 8 Aug 2016 01:43:28 -0400 Subject: [PATCH] bug fix --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 8b5d8847b..c5df7ef6d 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1188,11 +1188,14 @@ class LBRYDaemon(jsonrpc.JSONRPC): def _get_est_cost(self, name): def _check_est(d, name): - if isinstance(d.result, float): - log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC") - else: - log.info("Timeout estimating cost for lbry://" + name + ", using key fee") - d.cancel() + try: + if d.result: + log.info("Cost est for lbry://" + name + ": " + str(d.result) + "LBC") + return defer.succeed(None) + except AttributeError: + pass + log.info("Timeout estimating cost for lbry://" + name + ", using key fee") + d.cancel() return defer.succeed(None) def _add_key_fee(data_cost):