Open kadaliao opened 4 years ago
ElementType always creates a dummy poller for those Datapoints without function. (https://github.com/wagnerrp/pytmdb3/blob/07c849512d8043d74ecf90c85eb2c6445e09171e/tmdb3/util.py#L354)
So self.poller is not None in Data.__get__ will never be True. (https://github.com/wagnerrp/pytmdb3/blob/07c849512d8043d74ecf90c85eb2c6445e09171e/tmdb3/util.py#L150)
self.poller is not None
Data.__get__
It causes problem like #26
Check self.poller.func is not None instead will fix it.
self.poller.func is not None
And should return the default value for Datapoint if there is no data and no poller function.
ElementType always creates a dummy poller for those Datapoints without function. (https://github.com/wagnerrp/pytmdb3/blob/07c849512d8043d74ecf90c85eb2c6445e09171e/tmdb3/util.py#L354)
So
self.poller is not None
inData.__get__
will never be True. (https://github.com/wagnerrp/pytmdb3/blob/07c849512d8043d74ecf90c85eb2c6445e09171e/tmdb3/util.py#L150)It causes problem like #26
Check
self.poller.func is not None
instead will fix it.