Silence the non-sensical error:)
This commit is contained in:
@@ -128,6 +128,8 @@ class RouterstatsClient():
|
|||||||
self.connected = False
|
self.connected = False
|
||||||
raise NotConnected
|
raise NotConnected
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
|
if line == b'':
|
||||||
|
break
|
||||||
logging.error('Timeout while fetching data, got: %s' ,line)
|
logging.error('Timeout while fetching data, got: %s' ,line)
|
||||||
break
|
break
|
||||||
except OSError as error:
|
except OSError as error:
|
||||||
|
|||||||
Reference in New Issue
Block a user