summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-12 12:52:04 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-12 12:52:04 +0200
commit3155a3fefe1fbebf38053cde143ae666e263fa4b (patch)
tree9f28e2654022c6d827e2d56607665675b7fd0ffa /ishtar_common/views.py
parent21dc7d456a113fe897c828c30884f3d0cc2b99c3 (diff)
parent4aa6e59b2968e14e9f111fa4f3fceb874c91ca4b (diff)
downloadIshtar-3155a3fefe1fbebf38053cde143ae666e263fa4b.tar.bz2
Ishtar-3155a3fefe1fbebf38053cde143ae666e263fa4b.zip
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py2
1 files changed, 1 insertions, 1 deletions
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(