Skip to content

Commit

Permalink
trap failed json conversion in stream_client_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
baallan committed Oct 29, 2024
1 parent b61c4e4 commit 2f975d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldms/python/ldmsd/ldmsd_controller
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,9 @@ class LdmsdCmdParser(cmd.Cmd):
if not msg:
raise RuntimeError("no response")
obj = fmt_status(msg)
if obj is None:
print(msg)
return
print(f"{'stream':15} {'ctxt':15} {'cb_fn':70}")
print(f"{'-'*15} {'-'*15} {'-'*70}")
for s in obj['streams']:
Expand Down

0 comments on commit 2f975d3

Please sign in to comment.