Skip to content

Failure with self.api.has_key #5

@bridavis

Description

@bridavis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions