Skip to content

Commit 31dce57

Browse files
committed
fixed infinite loop issues
1 parent 01780dc commit 31dce57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

progressbar/bar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,10 @@ def __next__(self):
532532
return value
533533
except StopIteration:
534534
self.finish()
535+
raise
535536
except GeneratorExit:
536537
self.finish(dirty=True)
538+
raise
537539

538540
def __exit__(self, exc_type, exc_value, traceback):
539541
self.finish(dirty=bool(exc_type))

0 commit comments

Comments
 (0)