In Python 2.7, default selector raises IOError instead of OSError. Fix handles this exception. Fixes: #71704 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>