summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlyph <glyph@twistedmatrix.com>2015-04-14 17:30:53 -0400
committerGlyph <glyph@twistedmatrix.com>2015-04-14 17:30:53 -0400
commit3afdba8b774112457ef1d9b4094e978075bdecf6 (patch)
tree934815b6d9b5904271be2696827bbe3eacb254c5
parent893894778fdcb560e65057114cc7e65a7e0431f4 (diff)
downloadpyopenssl-3afdba8b774112457ef1d9b4094e978075bdecf6.tar.gz
don't panic if there's no errno
-rw-r--r--OpenSSL/SSL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 9296444..d0cc933 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -1175,7 +1175,7 @@ class Connection(object):
errno = _ffi.getwinerror()[0]
else:
errno = _ffi.errno
- raise SysCallError(errno, errorcode[errno])
+ raise SysCallError(errno, errorcode.get(errno))
else:
raise SysCallError(-1, "Unexpected EOF")
else: