[ovs-dev] [PATCH V3 12/21] python tests: Fixed OSError not iterable on Windows
Paul Boca
pboca at cloudbasesolutions.com
Thu Jun 23 11:17:14 UTC 2016
On Windows if this exception is triggered then it will raise an exception while in the
exception handler.
Signed-off-by: Paul-Daniel Boca <pboca at cloudbasesolutions.com>
---
V2: No changes
V3: No changes
---
python/ovs/poller.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/python/ovs/poller.py b/python/ovs/poller.py
index 20be801..a0fb2a7 100644
--- a/python/ovs/poller.py
+++ b/python/ovs/poller.py
@@ -17,6 +17,7 @@ import ovs.timeval
import ovs.vlog
import select
import socket
+import os
try:
import eventlet.patcher
@@ -168,6 +169,10 @@ class Poller(object):
try:
events = self.poll.poll(self.timeout)
self.__log_wakeup(events)
+ except OSError as e:
+ error = e.errno
+ if error != errno.EINTR:
+ vlog.err("poll: %s" % os.strerror(e.errno))
except select.error as e:
# XXX rate-limit
error, msg = e
--
2.7.2.windows.1
More information about the dev
mailing list