eric6/Utilities/BackgroundClient.py

branch
multi_processing
changeset 7853
35dcac32984a
parent 7802
eefe954f01e8
parent 7836
2f0d208b8137
child 7923
91e843545d9a
diff -r d0e9c4cb2aa0 -r 35dcac32984a eric6/Utilities/BackgroundClient.py
--- a/eric6/Utilities/BackgroundClient.py	Sat Oct 31 12:19:44 2020 +0100
+++ b/eric6/Utilities/BackgroundClient.py	Sat Dec 05 18:02:17 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