Fix ClientSideError constructor
This commit is contained in:
parent
c1c8e709ad
commit
dfaaeaae48
@ -4,8 +4,8 @@ from wsme.utils import _
|
|||||||
|
|
||||||
|
|
||||||
class ClientSideError(RuntimeError):
|
class ClientSideError(RuntimeError):
|
||||||
def __init__(self):
|
def __init__(self, msg=None):
|
||||||
super(ClientSideError, self).__init__(self.faultstring)
|
super(ClientSideError, self).__init__(msg if msg else self.faultstring)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def faultstring(self):
|
def faultstring(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user