rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.53k stars 206 forks source link

Better exception when nesting bars #144

Open crypdick opened 2 years ago

crypdick commented 2 years ago

Nesting bars is not supported, and throws a cryptic unhashable type error (https://github.com/rsalmei/alive-progress/issues/107)

It would be nice if the error was more informative. Maybe RuntimeError('Nested alive-progress bars are not supported')

Btw, thanks for the awesome project

rsalmei commented 2 years ago

Hey, thanks! 😊

Humm, I'm not sure that is the only cause of this error... But yeah, I'll take a look as soon as I can.