From a514ebdc81548f37e5fedb7bb43ca7ddab473af8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: May 05 2016 14:43:36 +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 e30f35f..70bdaf0 100644 --- a/ipalib/plugins/radiusproxy.py +++ b/ipalib/plugins/radiusproxy.py @@ -78,7 +78,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()