Skip to content

Commit

Permalink
Hotfix: WebUI DTM Provider Selector crashed app
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Jan 18, 2025
1 parent 85dad36 commit 4ee9792
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webui/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,13 @@ def add_left_widgets(self) -> None:

self.map_size_input = custom_map_size_input

try:
lat, lon = self.lat_lon
except ValueError:
lat, lon = DEFAULT_LAT, DEFAULT_LON

# DTM Provider selection.
providers: dict[str, str] = mfs.DTMProvider.get_valid_provider_descriptions(self.lat_lon)
providers: dict[str, str] = mfs.DTMProvider.get_valid_provider_descriptions((lat, lon))
# Keys are provider codes, values are provider descriptions.
# In selector we'll show descriptions, but we'll use codes in the background.

Expand Down

0 comments on commit 4ee9792

Please sign in to comment.