Fixed error from raising StopIteration in a coroutine.

This commit is contained in:
Andrew Hamilton 2020-05-04 03:37:39 +10:00
parent 8ef2bb78eb
commit 3b1da7537f

View file

@ -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)