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

InvalidOperation exception in smartmon.py #37

Open
cubranic opened this issue Feb 4, 2020 · 2 comments
Open

InvalidOperation exception in smartmon.py #37

cubranic opened this issue Feb 4, 2020 · 2 comments

Comments

@cubranic
Copy link

cubranic commented Feb 4, 2020

# HELP smartmon_attr_threshold SMART metric attr_threshold
# TYPE smartmon_attr_threshold gauge
Traceback (most recent call last):
  File "smartmon.py", line 378, in <module>
    main()
  File "smartmon.py", line 375, in main
    metric_print(m, 'smartmon_')
  File "smartmon.py", line 115, in metric_print
    print(metric_format(metric, prefix))
  File "smartmon.py", line 101, in metric_format
    value = decimal.Decimal(metric.value)
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
@laeti-tia
Copy link

Might be solved by #41

@dswarbrick
Copy link
Member

Might be solved by #41

@cubranic Can you please confirm whether this is now working with master?

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

3 participants