Fixed error from raising StopIteration in a coroutine.
This commit is contained in:
parent
8ef2bb78eb
commit
3b1da7537f
1 changed files with 2 additions and 0 deletions
|
|
@ -417,6 +417,8 @@ class Summary:
|
|||
except AttributeError:
|
||||
self.closest_placeholder_generator = self._placeholder_sweep()
|
||||
return self.closest_placeholder_generator.send(None)
|
||||
except StopIteration:
|
||||
raise StopAsyncIteration
|
||||
|
||||
def appearance_dimensions(self):
|
||||
return self._max_path_length + 1 + Entry.MAX_WIDTH, len(self._entries)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue