Skip to content

Commit 2bd1244

Browse files
committed
fix: misspell on return code
1 parent c8bdb90 commit 2bd1244

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88
- Support `fetch_schema` parameter for a connection (#219).
9+
- Corrected misspelling in the error code returned.
910

1011
### Added
1112

tarantool/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ def check(): # Check that connection is alive
11681168
sock_fd = self._socket.fileno()
11691169
except socket.error as e:
11701170
if e.errno == errno.EBADF:
1171-
return errno.ECONNRESETtuple_value
1171+
return errno.ECONNRESET
11721172
else:
11731173
if os.name == 'nt':
11741174
flag = socket.MSG_PEEK

0 commit comments

Comments
 (0)