Update party.py

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

View File

@ -504,9 +504,7 @@ class PartyWindow(bui.Window):
)
bui.getsound('error').play()
return
port = port_num
if port_num is None:
port = -1
port = port_num if port_num is not None else -1
if port > 65535 or port < 0:
bui.screenmessage(
bui.Lstr(resource='internal.invalidPortErrorText'),