vqdang / hover_net

Simultaneous Nuclear Instance Segmentation and Classification in H&E Histology Images.
MIT License
537 stars 224 forks source link

use `except Exception` instead of bare `except` #237

Closed kaczmarj closed 1 year ago

kaczmarj commented 1 year ago

A bare except will catch KeyboardInterrupt and SystemExit, making it hard to stop the program with control+C. Using except Exception will catch all other exceptions.