Python API: Incorrect error for empty VLA list.
[vpp.git] / vpp-api / python / vpp_papi / vpp_papi.py
index 02fe245..6b6b79f 100644 (file)
@@ -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