Traceback (most recent call last):
File "/opt/homebrew/bin/nrc-exporter", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 631, in main
parsed_data = parse_activity_data(json_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 449, in parse_activity_data
for i, metric in enumerate(activity["metrics"]):
KeyError: 'metrics'
Do we have error handling so it can skip the problematic file and move on to the next one?
The error does not log which file was the problematic
Traceback (most recent call last): File "/opt/homebrew/bin/nrc-exporter", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 631, in main
parsed_data = parse_activity_data(json_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 449, in parse_activity_data
for i, metric in enumerate(activity["metrics"]):