Skip to content

Commit 5b4c133

Browse files
updated: exception handling for mapbox
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 339f500 commit 5b4c133

File tree

1 file changed

+2
-2
lines changed
  • tutorial/markdown/nodejs/dataApi-appsync-tutorial

1 file changed

+2
-2
lines changed

tutorial/markdown/nodejs/dataApi-appsync-tutorial/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ def get_map_style() -> str:
478478
if token:
479479
try:
480480
pdk.settings.mapbox_api_key = token
481-
except Exception:
482-
pass
481+
except Exception as e:
482+
st.warning(f"Failed to apply Mapbox token: {e}")
483483
return "mapbox://styles/mapbox/light-v10"
484484
return "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
485485

0 commit comments

Comments
 (0)