Skip to content

Commit

Permalink
WebUI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Feb 11, 2025
1 parent 5603fd6 commit df8ce9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webui/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def read_generation_settings(self) -> tuple[mfs.Map, str]:
lat, lon = self.main_settings.lat_lon
except ValueError:
st.error("Invalid latitude and longitude!")
return
return None, None

# Prepare a tuple with the coordinates of the center point of the map.
coordinates = (lat, lon)
Expand Down Expand Up @@ -294,6 +294,10 @@ def generate_map(self) -> None:

mp, session_name = self.read_generation_settings()

if mp is None or session_name is None:
st.error("Incorrect settings were provided.")
return

if self.public:
add_to_queue(session_name)
for position in wait_in_queue(session_name):
Expand Down

0 comments on commit df8ce9c

Please sign in to comment.