From 7721b53bd3303ccd665c4389fb7e4bed4dd82d2b Mon Sep 17 00:00:00 2001 From: Chris Snijder Date: Fri, 30 Mar 2018 11:47:53 +0200 Subject: [PATCH] BrokenPipeError does not exist in Python2.7 --- stapled/core/stapleadder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stapled/core/stapleadder.py b/stapled/core/stapleadder.py index bece607..44ba004 100644 --- a/stapled/core/stapleadder.py +++ b/stapled/core/stapleadder.py @@ -133,7 +133,7 @@ def _open_socket(self, path): LOG.debug("Opened prompt with result: %s", result) self.socks[path] = sock return sock - except (BrokenPipeError, OSError, IOError) as exc: + except (OSError, IOError) as exc: raise stapled.core.exceptions.SocketError( "Could not initialize StapleAdder with socket {}: {}".format( path,