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

Update argon-status.py #60

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

newrobotstudios
Copy link
Contributor

This fixes an index out of range exception caused by an empty array of values.

ERROR MESSAGE WAS:
###############################
#> argon-status
Storage Temperature:
Traceback (most recent call last):
File "/usr/bin/argon-status", line 441, in
main()
File "/usr/bin/argon-status", line 393, in main
show_all( show_devices_list )
File "/usr/bin/argon-status", line 264, in show_all
printOutput(result)
File "/usr/bin/argon-status", line 78, in printOutput
printTable(data)
File "/usr/bin/argon-status", line 61, in printTable
for _key, item in values[0].items():
IndexError: list index out of range

This fixes an index out of range exception caused by an empty array of values.


ERROR MESSAGE WAS:
###############################
#> argon-status
Storage Temperature:
Traceback (most recent call last):
  File "/usr/bin/argon-status", line 441, in <module>
    main()
  File "/usr/bin/argon-status", line 393, in main
    show_all( show_devices_list )
  File "/usr/bin/argon-status", line 264, in show_all
    printOutput(result)
  File "/usr/bin/argon-status", line 78, in printOutput
    printTable(data)
  File "/usr/bin/argon-status", line 61, in printTable
    for _key, item in values[0].items():
IndexError: list index out of range
Copy link
Owner

@JeffCurless JeffCurless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JeffCurless JeffCurless merged commit 15ab60e into JeffCurless:main Oct 3, 2023
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

Successfully merging this pull request may close these issues.

2 participants