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

Failure with self.api.has_key #5

Open
bridavis opened this issue Nov 25, 2012 · 0 comments
Open

Failure with self.api.has_key #5

bridavis opened this issue Nov 25, 2012 · 0 comments

Comments

@bridavis
Copy link

This is likely a simple error, but I don't know enough about python to figure it out. Getting the following error when trying a simple getCurrentTemp.

from TStat import *
t = TStat('192.168.1.127')
t.getCurrentTemp()
Traceback (most recent call last):
File "", line 1, in
File "TStat.py", line 274, in getCurrentTemp
return self._get('temp', raw)
File "TStat.py", line 181, in _get
if not self.api.has_key(key):
AttributeError: 'NoneType' object has no attribute 'has_key'

Not quite sure what I'm doing wrong. Any ideas?

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