summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-18 04:44:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-18 04:44:35 +0200
commitd8fd8310ecc13561a89662eabdad92d5c3908206 (patch)
treeca006d9658f2acfc6c643317b3ce45225404b4e7 /ishtar_common/views.py
parentdeb558cfb82718cd0a719e98c1e78a67f444910e (diff)
parent044733418fd585a2037fef6136584cbc8d71d1af (diff)
downloadIshtar-d8fd8310ecc13561a89662eabdad92d5c3908206.tar.bz2
Ishtar-d8fd8310ecc13561a89662eabdad92d5c3908206.zip
Merge branch 'master' into develop
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 c537beaaa..2feb49bc0 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -1169,7 +1169,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