Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A failure on one of the data files #20

Open
jonnyzzz opened this issue Sep 22, 2023 · 1 comment
Open

A failure on one of the data files #20

jonnyzzz opened this issue Sep 22, 2023 · 1 comment

Comments

@jonnyzzz
Copy link

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

@jonnyzzz
Copy link
Author

In my case it was only able to process 1/3 of the data
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant