Skip to content

Commit

Permalink
fix: wagnerrp#26 check existence of datapoint.poller.func instead of …
Browse files Browse the repository at this point in the history
…datapoint.poller
  • Loading branch information
kadaliao committed Nov 1, 2020
1 parent 07c8495 commit c70623c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmdb3/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __get__(self, inst, owner):
if inst is None:
return self
if self.field not in inst._data:
if self.poller is None:
if self.poller.func is None:
return None
self.poller.__get__(inst, owner)()
return inst._data[self.field]
Expand Down

0 comments on commit c70623c

Please sign in to comment.