diff --git a/ariblib/packet.py b/ariblib/packet.py index 665c22a..9c1015e 100644 --- a/ariblib/packet.py +++ b/ariblib/packet.py @@ -48,7 +48,7 @@ def __iter__(self): ): next = packet[start:stop] if not next: - raise StopIteration + return yield next def __next__(self):