diff options
author | Klement Sekera <ksekera@cisco.com> | 2018-11-26 15:37:28 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-11-26 16:33:26 +0000 |
commit | ab11ec9ab94ffdf164daa2b5006dab4e388a966e (patch) | |
tree | 43645eda62037bc7d40ec03074fe00e1a4062bd4 /src/vpp-api/vapi | |
parent | ddf6e08d2e3fc1614430e26dea632fbc79df2906 (diff) |
vapi: break if parsing progress cannot be made
Change-Id: I1b76994f674a045f7fce3d61ef2aa5294ddb53a9
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vpp-api/vapi')
-rw-r--r-- | src/vpp-api/vapi/vapi_json_parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/vapi/vapi_json_parser.py b/src/vpp-api/vapi/vapi_json_parser.py index 8728a1a6bc2..39acca0b538 100644 --- a/src/vpp-api/vapi/vapi_json_parser.py +++ b/src/vpp-api/vapi/vapi_json_parser.py @@ -393,6 +393,7 @@ class JsonParser(object): if progress <= last_progress: # cannot make forward progress self.exceptions.extend(exceptions) + break exceptions = [] last_progress = progress progress = 0 |