pytroll / fogpy

Satellite based fog and low stratus detection and nowcasting
http://fogpy.readthedocs.io/en/latest
GNU General Public License v3.0
20 stars 10 forks source link

Do not catch them all #39

Closed gerritholl closed 5 years ago

gerritholl commented 5 years ago

Do not use bare excepts and do not use except Exception under normal circumstances. This PR instead creates a dummy class DummyException, that is never raised; like this I can debug in what contect those uncaught exceptions may occur. Over time, those blocks should then be replaced again by narrow exceptions that may be expected.