Skip to content

Commit

Permalink
Merge pull request #615 from djhoese/bugfix-abi-l1b-bad-file
Browse files Browse the repository at this point in the history
Fix confusing error in abi_l1b reader when file fails to open
  • Loading branch information
djhoese authored Feb 13, 2019
2 parents 57c7d21 + 2c16c2e commit f55d08a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions satpy/readers/abi_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
class NC_ABI_L1B(BaseFileHandler):

def __init__(self, filename, filename_info, filetype_info):
super(NC_ABI_L1B, self).__init__(filename, filename_info,
filetype_info)
super(NC_ABI_L1B, self).__init__(filename, filename_info, filetype_info)
# xarray's default netcdf4 engine
self.nc = xr.open_dataset(self.filename,
decode_cf=True,
Expand Down Expand Up @@ -218,5 +217,5 @@ def end_time(self):
def __del__(self):
try:
self.nc.close()
except (IOError, OSError):
except (IOError, OSError, AttributeError):
pass

0 comments on commit f55d08a

Please sign in to comment.