Skip to content

Commit 5ac76ae

Browse files
authored
Added string message in few exceptions
1 parent c579b39 commit 5ac76ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

etcd3/exceptions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ class InternalServerError(Etcd3Exception):
1111

1212

1313
class ConnectionFailedError(Etcd3Exception):
14-
pass
14+
def __str__(self):
15+
return "etcd connection failed"
1516

1617

1718
class ConnectionTimeoutError(Etcd3Exception):
18-
pass
19+
def __str__(self):
20+
return "etcd connection timeout"
1921

2022

2123
class PreconditionFailedError(Etcd3Exception):

0 commit comments

Comments
 (0)