mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
update_leader can throw EtcdError exception unused HealthiestMemberError exception is removed
12 lines
191 B
Python
12 lines
191 B
Python
class EtcdError(Exception):
|
|
|
|
def __init__(self, value):
|
|
self.value = value
|
|
|
|
def __str__(self):
|
|
return repr(self.value)
|
|
|
|
|
|
class CurrentLeaderError(EtcdError):
|
|
pass
|