Patronictl: Prettier error messages by inheriting from ClickException

This commit is contained in:
Feike Steenbergen
2015-12-22 15:29:05 +01:00
parent 146d9a688e
commit 64e09f7ca7
+3 -1
View File
@@ -1,3 +1,5 @@
from click import ClickException
class PatroniException(Exception):
"""Parent class for all kind of exceptions related to selected distributed configuration store"""
@@ -13,7 +15,7 @@ class PatroniException(Exception):
return repr(self.value)
class PatroniCtlException(Exception):
class PatroniCtlException(ClickException):
pass