mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove the message attribute from exceptions
This is causing python2 tests print ugly warnings about the deprecation of the `message` attribute in python2.6. https://pagure.io/freeipa/issue/7131 Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -369,7 +369,7 @@ class ServerCommandError(PublicError):
|
||||
For example:
|
||||
|
||||
>>> e = CommandError(name='foobar')
|
||||
>>> raise ServerCommandError(error=e.message, server='https://localhost')
|
||||
>>> raise ServerCommandError(error=str(e), server='https://localhost')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ServerCommandError: error on server 'https://localhost': unknown command 'foobar'
|
||||
|
||||
Reference in New Issue
Block a user