Commit 4f989909 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix unwanted error-detail inheritance bug

parent f91bc6b1
......@@ -292,6 +292,7 @@ def _update_parser_help(parser, cmd):
def _print_error_message(cli_err):
print('> > >')
errmsg = '%s' % cli_err
if cli_err.importance == 1:
errmsg = magenta(errmsg)
......
......@@ -44,7 +44,7 @@ recvlog = logging.getLogger('clients.recv')
class ClientError(Exception):
def __init__(self, message, status=0, details=[]):
def __init__(self, message, status=0, details=None):
try:
message += '' if message and message[-1] == '\n' else '\n'
serv_stat, sep, new_msg = message.partition('{')
......@@ -69,7 +69,7 @@ class ClientError(Exception):
super(ClientError, self).__init__(message)
self.status = status
self.details = details
self.details = details if details else []
class SilentEvent(Thread):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment