NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

Remove bare Exceptions #35

Open ChrisBarker-NOAA opened 5 years ago

ChrisBarker-NOAA commented 5 years ago

There are a number of places where there are bare except clauses:

                try:
                    ln = ds[k].long_name
                except:  # fixme: what Exception are we expecting???
                    ln = ds[k].name

we really should clean that up -- I suspect that one is a AttributeError, for instance.

If it gets some other error, it would be better to bomb out.