Skip to content

Commit 2caa5e1

Browse files
authored
Fix image_to_numpy error (#1895)
1 parent 2c46ef1 commit 2caa5e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

geemap/common.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11592,12 +11592,7 @@ def image_to_numpy(image):
1159211592

1159311593
gdal.UseExceptions()
1159411594

11595-
handler = gdal.PushErrorHandler("CPLQuietErrorHandler")
11596-
11597-
try:
11598-
yield handler
11599-
finally:
11600-
gdal.PopErrorHandler()
11595+
gdal.PushErrorHandler("CPLQuietErrorHandler")
1160111596

1160211597
if not os.path.exists(image):
1160311598
raise FileNotFoundError("The provided input file could not be found.")

0 commit comments

Comments
 (0)