CroatiaControlLtd / asterix

Asterix is utility used to read and parse EUROCONTROL ASTERIX protocol data from stdin, file or network multicast stream and print it to standard output in text, XML or JSON format. Source can be used to generate Wireshark dissector for ASTERIX protocol. All ASTERIX categories are defined through XML definition file.
GNU General Public License v2.0
169 stars 90 forks source link

KeyError: 'variation' #228

Closed beibei198918 closed 5 months ago

beibei198918 commented 5 months ago

curl https://zoranbosnjak.github.io/asterix-specs/specs/cat062/cats/cat1.18/definition.json | python3 asterixjson2xml.py

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 612k 100 612k 0 0 135k 0 0:00:04 0:00:04 --:--:-- 156k Traceback (most recent call last): File "/Users/lbb/tmp/asterix/asterix-specs-converter/asterixjson2xml.py", line 744, in result = cat.parse() File "/Users/lbb/tmp/asterix/asterix-specs-converter/asterixjson2xml.py", line 720, in parse self.cat.render() File "/Users/lbb/tmp/asterix/asterix-specs-converter/asterixjson2xml.py", line 670, in render i.render() File "/Users/lbb/tmp/asterix/asterix-specs-converter/asterixjson2xml.py", line 626, in render Variation.create(self, item).render() File "/Users/lbb/tmp/asterix/asterix-specs-converter/asterixjson2xml.py", line 333, in create variation = item['variation'] KeyError: 'variation'