1
0
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:
Stefan Metzmacher 2018-01-24 19:14:53 +01:00
parent 84f07a8dcb
commit 28fcf631c8

View File

@ -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