Skip to content

Commit

Permalink
Python bindings: hopefully fix 'VSIFile' object has no attribute '_cl…
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 3, 2024
1 parent 7c0ad01 commit f5eedd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swig/include/python/gdal_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -5018,6 +5018,7 @@ class VSIFile(BytesIO):

self._fp = VSIFOpenExL(self._path, self._mode, True)
if self._fp is None:
self._closed = True
raise OSError(VSIGetLastErrorMsg())

self._closed = False
Expand Down

0 comments on commit f5eedd2

Please sign in to comment.