diff --git a/progressbar/bar.py b/progressbar/bar.py
index <HASH>..<HASH> 100644
--- a/progressbar/bar.py
+++ b/progressbar/bar.py
@@ -533,7 +533,7 @@ class ProgressBar(StdRedirectMixin, ResizableMixin, ProgressBarBase):
         except StopIteration:
             self.finish()
             raise
-        except GeneratorExit:
+        except GeneratorExit:  # pragma: no cover
             self.finish(dirty=True)
             raise
ignoring "impossible" use case for test coverage