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()