mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
Move some basic methods implementation into parent exception class
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
class PatroniException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class DCSError(PatroniException):
|
||||
|
||||
"""Parent class for all kind of exceptions related to selected distributed configuration store"""
|
||||
|
||||
@@ -15,3 +11,7 @@ class DCSError(PatroniException):
|
||||
"'foo'"
|
||||
"""
|
||||
return repr(self.value)
|
||||
|
||||
|
||||
class DCSError(PatroniException):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user