diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-04-29 16:11:38 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-05 16:42:46 +0200 |
commit | 890f83b0bbd5ec03397e817ed1282fa66efab7da (patch) | |
tree | ed3149a867a0d63066d4f9b32f4337ae3d52c006 | |
parent | 6406c7a5935e9fb9cd41af49f67d6200021b3574 (diff) | |
download | freeipa-890f83b0bbd5ec03397e817ed1282fa66efab7da.tar.gz freeipa-890f83b0bbd5ec03397e817ed1282fa66efab7da.tar.xz freeipa-890f83b0bbd5ec03397e817ed1282fa66efab7da.zip |
radiusproxy plugin: Use str(error) rather than error.message
In Python 3, the "message" attribute has been removed in favor of
calling str() on the error.
Part of the work for https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Petr Spacek <pspacek@redhat.com>
-rw-r--r-- | ipalib/plugins/radiusproxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/radiusproxy.py b/ipalib/plugins/radiusproxy.py index 2a66436f5..8ca179b49 100644 --- a/ipalib/plugins/radiusproxy.py +++ b/ipalib/plugins/radiusproxy.py @@ -85,7 +85,7 @@ def validate_radiusserver(ugettext, server): validate_hostname(server, check_fqdn=True, allow_underscore=True) except ValueError as e: raise errors.ValidationError(name="ipatokenradiusserver", - error=e.message) + error=str(e)) @register() |