Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously this statement was outside the `ctx` context, and so `dataset` may already have been freed before we call `dataset.tags()`. In my experience, this was sporadically leading to either of the following errors: ``` rasterio.errors.RasterioIOError: Dataset is closed` ``` or ``` rasterio._err.ObjectNullError: Pointer 'hObject' is NULL in 'GDALGetMetadata'. ```
- Loading branch information