Skip to content

Commit

Permalink
fix json parse breaking because of comma (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaileshaanand authored Jul 28, 2024
1 parent 925174f commit 3d3ed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intel-gpu-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def update(data):
output += line

try:
data = json.loads(output)
data = json.loads(output.strip(","))
logging.debug(data)
update(data)
output = ""
Expand Down

0 comments on commit 3d3ed15

Please sign in to comment.