diff --git a/app/utils.py b/app/utils.py index 1d924fbd8b862209024fe18550e0899fe0b1a055..6dc8d715c62d7b8e456ccd478ecb04a4dfb4e98a 100644 --- a/app/utils.py +++ b/app/utils.py @@ -111,7 +111,10 @@ def attribute_to_string(value): :returns: string """ if isinstance(value, list): - return value[0] + try: + return value[0] + except IndexError: + return "" else: return value