Merge "Correct CSV processing in inventory"
This commit is contained in:
commit
2ff4562e11
@ -137,7 +137,7 @@ def _prepare_inventory():
|
|||||||
def _val_or_none(array, location):
|
def _val_or_none(array, location):
|
||||||
"""Return any value that has a length"""
|
"""Return any value that has a length"""
|
||||||
try:
|
try:
|
||||||
if not array[location]:
|
if len(array[location]) > 0:
|
||||||
return array[location]
|
return array[location]
|
||||||
return None
|
return None
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user