mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
python/netcmd: implement __repr__ for class CommandError
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
84f07a8dcb
commit
28fcf631c8
@ -243,3 +243,6 @@ class CommandError(Exception):
|
||||
self.message = message
|
||||
self.inner_exception = inner_exception
|
||||
self.exception_info = sys.exc_info()
|
||||
|
||||
def __repr__(self):
|
||||
return "CommandError(%s)" % self.message
|
||||
|
Loading…
Reference in New Issue
Block a user