Skip to content

Commit

Permalink
Improved add_gdf error handling (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jun 29, 2023
1 parent a3e1e68 commit 833f1d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leafmap/leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2478,8 +2478,8 @@ def add_gdf(
try:
if gdf[col].dtype in ["datetime64[ns]", "datetime64[ns, UTC]"]:
gdf[col] = gdf[col].astype(str)
except Exception as e:
print(e)
except:
pass

data = gdf_to_geojson(gdf, epsg="4326")

Expand Down

0 comments on commit 833f1d9

Please sign in to comment.