verigak / progress

Easy to use progress bars for Python
ISC License
1.41k stars 179 forks source link

Now iter() calls finish even on an exception #15

Closed sindreij closed 8 years ago

sindreij commented 9 years ago

As I reported in issue #14 raising an exception in a loop over a iterator got from a iter() call will not finalize the bar.

This commit uses a try, finally block to ensure that finish is always called

verigak commented 8 years ago

Thanks!