From: Ondrej Lichtner <olichtne(a)redhat.com>
This except block can hide potential issues, the exception should be
logged.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/ConnectionHandler.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lnst/Common/ConnectionHandler.py b/lnst/Common/ConnectionHandler.py
index 29d4b19..3f7f99f 100644
--- a/lnst/Common/ConnectionHandler.py
+++ b/lnst/Common/ConnectionHandler.py
@@ -13,6 +13,8 @@ olichtne(a)redhat.com (Ondrej Lichtner)
import select
import socket
+import logging
+import traceback
from multiprocessing.connection import Connection
from pyroute2 import IPRSocket
from lnst.Common.SecureSocket import SecureSocket, SecSocketException
@@ -61,6 +63,7 @@ class ConnectionHandler(object):
try:
rl, wl, xl = select.select(connections, [], [], timeout)
except select.error:
+ logging.debug(traceback.format_exc())
return []
for f in rl:
f_ready = True
--
2.26.0