From c97c0c707787bf6b6dda4ab1859b269baf418363 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 12 Jul 2017 12:16:30 +0200 Subject: CSV Export: add documentation type to models to exports - fail silently if type is not available (refs #3652) --- ishtar_common/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 0be382866..5786391cc 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1153,7 +1153,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[], for idx, col_name in enumerate(table_cols): val = data[1:][idx + delta].encode( ENCODING, errors='replace') - if "|" in col_name[0]: + if col_name and "|" in col_name[0]: for delta_idx in range(len(col_name[0].split('|')) - 1): delta += 1 val += data[1:][idx + delta].encode( -- cgit v1.2.3