fix traceback

This commit is contained in:
InspectorCaracal 2022-12-22 21:45:45 -07:00 committed by GitHub
parent efd9c1764a
commit 0a633aebfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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