Update party.py

This commit is contained in:
Vishal 2023-12-16 22:53:36 +05:30 committed by GitHub
parent e237a3755f
commit 50fa53ebfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,7 +482,11 @@ class PartyWindow(bui.Window):
port_num=info.port,
)
else:
bui.screenmessage('Not connected to a server')
bui.screenmessage(
bui.Lstr(
resource='NotConnectedToServerText'
)
)
else:
print(f'unhandled popup type: {self._popup_type}')
@ -501,6 +505,8 @@ class PartyWindow(bui.Window):
bui.getsound('error').play()
return
port = port_num
if port_num is None:
port = -1
if port > 65535 or port < 0:
bui.screenmessage(
bui.Lstr(resource='internal.invalidPortErrorText'),