eric6/Utilities/BackgroundClient.py

changeset 7836
2f0d208b8137
parent 7660
87291331c122
child 7853
35dcac32984a
child 7924
8a96736d465e
diff -r 0835ed67714b -r 2f0d208b8137 eric6/Utilities/BackgroundClient.py
--- a/eric6/Utilities/BackgroundClient.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/Utilities/BackgroundClient.py	Sun Nov 22 16:04:59 2020 +0100
@@ -113,7 +113,7 @@
         self.connection.setblocking(False)
         try:
             data = self.connection.recv(length, socket.MSG_PEEK)
-        except socket.error:
+        except OSError:
             pass
         finally:
             self.connection.setblocking(True)
@@ -185,7 +185,7 @@
                     ret = str(ret)
                 
                 self.__send(fx, fn, ret)
-        except socket.error:
+        except OSError:
             pass
         except Exception:
             exctype, excval, exctb = sys.exc_info()

eric ide

mercurial