mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Proper way of getting next values in a generator
This commit is contained in:
parent
0c4a5f3aaf
commit
3a1d7e17aa
@ -109,7 +109,7 @@ class TimelineApp:
|
||||
|
||||
def fetch_next(self):
|
||||
try:
|
||||
statuses = self.status_generator.__next__()
|
||||
statuses = next(self.status_generator)
|
||||
except StopIteration:
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user