ungarj/mapchete

don't write MemoryFile or TempFile on exception

ungarj opened this issue · 0 comments

Currently the __exit__ methods of RasterioRemoteMemoryWriter and RasterioRemoteTempFileWriter call their respective write/upload functions regardless of whether it is called after an Exception or not. This could potentially lead to writing faulty GeoTIFF files on a remote filesystem such as a bucket.