summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/cliutils/cliutils.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/cliutils/cliutils.py b/extras/cliutils/cliutils.py
index 0095586827..55fbaf5670 100644
--- a/extras/cliutils/cliutils.py
+++ b/extras/cliutils/cliutils.py
@@ -20,7 +20,14 @@ _common_args_func = lambda p: True
class GlusterCmdException(Exception):
- pass
+ def __init__(self, message):
+ self.message = message
+ try:
+ # Python 3
+ super().__init__(message)
+ except TypeError:
+ # Python 2
+ super(GlusterCmdException, self).__init__(message)
def get_node_uuid():