Skip to content

Commit bdb4570

Browse files
authored
Merge pull request kragniz#971 from ahmedbilal/patch-1
Added string message in few exceptions
2 parents ed2f758 + 0f0f447 commit bdb4570

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)