From 890f83b0bbd5ec03397e817ed1282fa66efab7da Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: May 05 2016 14:42:46 +0000 Subject: 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 Reviewed-By: Petr Spacek --- diff --git a/ipalib/plugins/radiusproxy.py b/ipalib/plugins/radiusproxy.py index 2a66436..8ca179b 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()