Skip to content

Commit

Permalink
Fix image_to_numpy error
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Feb 2, 2024
1 parent 2c46ef1 commit 938ec80
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions geemap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11592,12 +11592,7 @@ def image_to_numpy(image):

gdal.UseExceptions()

handler = gdal.PushErrorHandler("CPLQuietErrorHandler")

try:
yield handler
finally:
gdal.PopErrorHandler()
gdal.PushErrorHandler("CPLQuietErrorHandler")

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

0 comments on commit 938ec80

Please sign in to comment.