summaryrefslogtreecommitdiffstats
path: root/vpp-api/python/vpp_papi
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2016-12-21 11:51:05 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-21 17:05:05 +0000
commit85bdafacbdd25f88c06076ca7208ff14fe10b74c (patch)
tree4cf10e8085f70cbc2c4a97ba2268488b1b989548 /vpp-api/python/vpp_papi
parentee49bf82f5548959e0489e9dfac3a071c99f70de (diff)
Python API: Incorrect error for empty VLA list.
Change-Id: Ie3e9a54ca23af6b9ee43615f59a48cb05e3906d4 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'vpp-api/python/vpp_papi')
-rw-r--r--vpp-api/python/vpp_papi/vpp_papi.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/vpp-api/python/vpp_papi/vpp_papi.py b/vpp-api/python/vpp_papi/vpp_papi.py
index 02fe2457ef0..6b6b79fd70b 100644
--- a/vpp-api/python/vpp_papi/vpp_papi.py
+++ b/vpp-api/python/vpp_papi/vpp_papi.py
@@ -206,9 +206,6 @@ class VPP():
e = v[0] if type(v[0]) is int else res[v[2]]
if e == -1:
e = (len(buf) - off) / v[1].size
- if e == 0:
- raise ValueError(1,
- 'Variable length array, empty length: ' + k)
lst = []
res.append(lst)
size = 0