From 2bdc94af601c755bac4b81ec17cbc21f49a152d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 13 Aug 2018 21:33:11 +0200 Subject: [PATCH] authentic: handle role emails being None (#25670) --- hobo/agent/authentic2/role_forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hobo/agent/authentic2/role_forms.py b/hobo/agent/authentic2/role_forms.py index 11920b4..228bbb8 100644 --- a/hobo/agent/authentic2/role_forms.py +++ b/hobo/agent/authentic2/role_forms.py @@ -41,6 +41,8 @@ class ListValidator(object): class CommaSeparatedInput(forms.TextInput): def _format_value(self, value): + if not value: + return '' if not isinstance(value, basestring): return u', '.join(value) return value -- 2.18.0