fix traceback

This commit is contained in:
InspectorCaracal 2022-12-22 21:45:45 -07:00 committed by GitHub
parent 290475a9fe
commit 0d76076aa8

View file

@ -463,7 +463,10 @@ class XYZRoom(DefaultRoom):
)
sessions = looker.sessions.get()
client_width, _ = sessions[0].get_client_size() if sessions else CLIENT_DEFAULT_WIDTH
if sessions:
client_width, _ = sessions[0].get_client_size()
else:
client_width = CLIENT_DEFAULT_WIDTH
map_width = xymap.max_x