From 833f1d94de93e2301b882686a40cdb4ddd6ef909 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Thu, 29 Jun 2023 15:44:05 -0400 Subject: [PATCH] Improved add_gdf error handling (#485) --- leafmap/leafmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leafmap/leafmap.py b/leafmap/leafmap.py index 8be04858f2..ce94ca149a 100644 --- a/leafmap/leafmap.py +++ b/leafmap/leafmap.py @@ -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")