From ff3d013b7fc3742150a307b6d61bb014ad6c318d Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe Date: Wed, 27 Sep 2017 23:41:06 +0100 Subject: [PATCH] [monitor] Do not crash if estimatesmartfee returns an odd result --- monitor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 542e15c..96fb069 100644 --- a/monitor.py +++ b/monitor.py @@ -184,8 +184,11 @@ class MonitorView(object): except KeyError: return - b, fr = estimatesmartfee["blocks"], estimatesmartfee["feerate"] - self._estimatesmartfee[b] = fr + try: + b, fr = estimatesmartfee["blocks"], estimatesmartfee["feerate"] + self._estimatesmartfee[b] = fr + except KeyError: + self._estimatesmartfee = None if self._visible: await self.draw()