summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vpp-api/java/jvpp/gen/jvppgen/jvpp_model.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_model.py b/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_model.py
index 3b09a81cfc4..8b60c0dc4f3 100755
--- a/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_model.py
+++ b/src/vpp-api/java/jvpp/gen/jvppgen/jvpp_model.py
@@ -310,11 +310,14 @@ class JVppModel(object):
self._types_by_name[n + _ARRAY_SUFFIX] = Array(t)
for json_type in self._types:
- name = json_type[0]
- definition = json_type[1:]
- _type = self._parse_type(name, definition)
- self._types_by_name[name] = _type
- self._types_by_name[name + _ARRAY_SUFFIX] = Array(_type)
+ try:
+ name = json_type[0]
+ definition = json_type[1:]
+ _type = self._parse_type(name, definition)
+ self._types_by_name[name] = _type
+ self._types_by_name[name + _ARRAY_SUFFIX] = Array(_type)
+ except ParseException as e:
+ self.logger.warning("Failed to parse %s type: %s. Skipping type definition.", name, e)
self.types = self._types_by_name.values()